![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CSS
qq_34668557
这个作者很懒,什么都没留下…
展开
-
font-style font-weight font-variant
italic 斜体normal 正常oblique 倾斜斜体和倾斜大部分一样一般使用italicfont-weight:boldfont-weight:100; //100-900 font-variant:normal;font-variant:small-caps; 文本以小型大写字母表示所有字母均为大写,小写字母比大写字母小...转载 2018-03-30 16:56:13 · 187 阅读 · 0 评论 -
行间距CSS
line-height:40px;通过设置行高来控制行间距还可以设置百分数line-height:200%;设置倍数line-height:2;转载 2018-03-30 17:25:32 · 3115 阅读 · 0 评论 -
clearfix 解决高度塌陷/分离父子元素外边距
.clearfix:before,.clerafix:after{ content: ""; display: block; clear: both;}转载 2018-04-08 09:25:13 · 210 阅读 · 0 评论 -
reset.css
/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain)*/html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr...转载 2018-04-08 15:53:30 · 372 阅读 · 0 评论 -
CSS首行缩进 文本对齐方式
text-indent:2em;text-align:justify;//两端对齐text-align:left right center转载 2018-04-02 09:11:46 · 1560 阅读 · 0 评论 -
解决高度塌陷的一种推荐方法
div:after{ display: block; content: ""; clear: both;}IE6不支持after伪类需要添加代码:div{ zoom:1}转载 2018-04-03 10:20:41 · 198 阅读 · 0 评论