好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

W3School-CSS伪元素(Pseudo-elements)实例_html/css_WEB-IT

CSS 伪元素 (Pseudo-elements)实例

CSS 实例

CSS 背景实例 CSS 文本实例 CSS 字体(font)实例 CSS 边框(border)实例 CSS 外边距 (margin) 实例 CSS 内边距 (padding) 实例 CSS 列表实例 CSS 表格实例 轮廓(Outline)实例 CSS 尺寸 (Dimension) 实例 CSS 分类 (Classification) 实例 CSS 定位 (Positioning) 实例 CSS 伪类 (Pseudo-classes)实例 CSS 伪元素 (Pseudo-elements)实例 01制作首字母特效
                         01制作首字母特效                      p:first-letter {                color: #ff0000;                font-size: xx-large;            }                           

You can use the :first-letter pseudo-element to add a special effect to the first letter of a text!

02制作首行特效
                         02制作首行特效                      p:first-line {                color: #ff0000;                font-variant: small-caps;            }                           

You can use the :first-line pseudo-element to add a special effect to the first line of a text!

CSS 伪元素 (Pseudo-elements) 总结

查看更多关于W3School-CSS伪元素(Pseudo-elements)实例_html/css_WEB-IT的详细内容...

  阅读:36次