CSS基本文字样式

来源:互联网 发布:java公司贷款培训骗局 编辑:程序博客网 时间:2024/04/25 11:31

<style>

#box{width:500px; height:300px; margin:90px auto; border:1px solid red;
font-size:18px;/* 12px 偶数 */
font-family:宋体,arial;
color:#961939;
line-height:30px;
text-align:left;
text-indent:2em;/* 1em=[font-size] 相当于1个字 */
font-weight:bold;
font-style:italic;
text-decoration:none;
word-spacing:30px;
}
/* 
font-size                 文字大小(一般均为偶数)
font-family              字体(中文默认宋体)
color                       文字颜色(英文、rgb、十六位进制色彩值)
line-height             行高 文字在行高之间居中 基线之间的距离
text-align                文本对齐方式
text-indent              首行缩进(em缩进字符)
font-weight             文字着重
font-style                 文字倾斜
text-decoration       文本修饰 下划线
letter-spacing         字母间距
word-spacing         单词间距(以空格为解析单位)


font:font-style | font-weight | font-size/line-height | font-family;*/


</style>
0 0
原创粉丝点击