css的简单样式

来源:互联网 发布:软件体系结构经典书籍 编辑:程序博客网 时间:2024/05/21 22:37

text-align:center 文本居中; line-height:行高;background:url("路径")  no-repeat(不重复)  0px 20%:设置图片样式

text-indent:文本缩进; 1em:表示一个字。 a{text-decoration:none/underline}:表示有无下划线;hover:表示鼠标悬停的时候;

font-family:"黑体";表示字体样式; img{vertical-align:middle}:当有图片和文字,文字显示在图片的中部;

onmouserover="this.style.backgroundColor" 和onmouserOut可以设置光棒效果;background-repeat:no-repeat/repeat-x;

background-image:url{"admin.png"}; padding:(22px 8px 5px 5px):逆时针方向;cursor:hand:当鼠标悬停上去的显示一个手

display:block:块显示; ul(list-style:none)  background-postion:1px 4px;  border-collapse:collapse; 边框不重复。