HTML 一些属性

background-repeat; 平铺 repeat-x 横向平铺
background-position:right  top; 右上角   left 100px top 200px离左边100像素 离上边200像素
font-style:italic;倾斜 normal不倾斜
text-decoration:underline;下划线 overline上划线 line-through删除线
none去掉下划线
line-height:24px;行高
vertical-align:middle;垂直居中 一般设置行高后使用
visibility:hidden;可视性。hidden隐藏但是占空间,visible,显示
border-width/style/color--边框像素/边框线条样式/颜色
border-top/bottom/;left/right 上下左右边框
margin:10px;对外边框的距离,对外的
padding:10px;对内的,内容与边框的距离
list-style:none;取消序号
overflow:hidden;超出范围隐藏; scroll,超出范围时出滚动条
超链接样式
a:link /*一般链接*/
{
color:blue;
}
a:visited/*访问过的链接格式*/
{
color:green
}
a:hover/*设置鼠标指向链接时的形式*/
{
color:red;
}
cursor:pointer 鼠标指到上面时的形状
opacity:0.5;设置透明度
原文地址:https://www.cnblogs.com/happinesshappy/p/4499395.html