您的位置:首页 > Web前端 > CSS

CSS格式化排版

2017-02-20 21:39 204 查看
1.文字排版--字体:body{font-family:"Microsoft Yahei";}

2.文字排版--字号、颜色:body{font-size:12px;color:#666}

3.文字排版--粗体:p span{font-weight:bold;}

4.文字排版--斜体:p a{font-style:italic;}

5.文字排版--下划线:p a{text-decoration:underline;}

6.文字排版--删除线: .oldPrice{text-decoration:line-through;}

7.段落排版--缩进:p{text-indent:2em;}

8.段落排版--行间距(行高):p{line-height:1.5em;}

9.段落排版--中文字间距、字母间距:

                      1.中文字间隔、字母间隔设置:h1{letter-spacing:50px;}

                      2.单词间距设置:h1{word-spacing:50px;}

10.段落排版--对齐:h1{text-align:center;}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: