IT入门 > 教程 > css教程 >

  • CSS font-variant 属性

    日期:2022-10-10 18:27:28 点击:1854 好评:0

    实例 把段落设置为小型大写字母字体: p.small{font-variant:small-caps;} 尝试一下 » 属性定义及使用说明 font-variant 属性设置小型大写字母的字体显示文本,这意味着所有的小写字母均会被转...

  • CSS font-weight 属性

    日期:2022-10-10 18:27:28 点击:3642 好评:0

    实例 三段文字设置不同的字体粗细: p.normal {font-weight:normal;}p.thick {font-weight:bold;}p.thicker {font-weight:900;} 尝试一下 » 属性定义及使用说明 font-weight 属性设置文本的粗细 默认值: normal 继...

  • CSS3 @font-face 规则

    日期:2022-10-10 18:27:28 点击:5277 好评:0

    实例 指定名为"myFirstFont"的字体,并指定在哪里可以找到它的URL: @font-face{font-family: myFirstFont;src: url('Sansation_Light.ttf'),url('Sansation_Light.eot'); /* IE9 */} 尝试一下 » 浏览器支持 Internet Explo...

  • CSS3 font-size-adjust Property

    日期:2022-10-10 18:27:28 点击:9814 好评:0

    实例 通过指定font-size-adjust属性,浏览器将调整字体大小,无论字体系列("宋体"性质值0.58): div{font-size-adjust: 0.58;} 尝试一下 » 浏览器支持 目前只有Firefox支持 font-size-adjust 属性. 属性...

  • CSS3 font-stretch 属性

    日期:2022-10-10 18:27:28 点击:10494 好评:0

    实例 让所有的div元素的文本更宽: div{font-stretch: expanded;} 尝试一下 » 浏览器支持 目前没有主流浏览器支持font-Stretch属性。 属性定义及使用说明 font-Stretch属性允许你使文字变宽或变窄...

  • CSS content 属性

    日期:2022-10-10 18:27:28 点击:3281 好评:0

    实例 以下实例将在每个链接后的括号内加上网址(href 属性): a:after{ content: " (" attr(href) ")";} 尝试一下 » 属性定义及使用说明 content 属性与 :before 及 :after 伪元素配合使用,来插入内...

  • CSS counter-increment 属性

    日期:2022-10-10 18:27:28 点击:2435 好评:0

    实例 对部分和子部分进行编号(比如 "Section 1"、"1.1"、"1.2")的方法: body{ counter-reset:section;} h1{ counter-reset:subsection;} h1:before{ counter-increment:section; content:"Section " counter(section) ". ";} h2:be...

  • CSS counter-reset 属性

    日期:2022-10-10 18:27:28 点击:8116 好评:0

    实例 对部分和子部分进行编号(比如 "Section 1"、"1.1"、"1.2")的方法: body{ counter-reset:section;} h1{ counter-reset:subsection;} h1:before{ counter-increment:section; content:"Section " counter(section) ". ";} h2:be...

  • CSS quotes 属性

    日期:2022-10-10 18:27:28 点击:5897 好评:0

    实例 设置嵌套引用的引号类型: q:lang(en){quotes: "�" "�" "'" "'";} 尝试一下 » 属性定义及使用说明 quotes属性设置嵌套引用的引号类型。 默认值: not specified 继承: yes 版本: CSS2...

  • CSS import 规则

    日期:2022-10-10 18:27:28 点击:2088 好评:0

    实例 导入 "navigation.css" 样式到当前的样式表: @import "navigation.css"; /* 使用字符串 */ 或者 @import url("navigation.css"); /* 使用 url 地址 */ 浏览器支持 表格中的数字表示支持该属性的第一个浏...

广告位API接口通信错误,查看德得广告获取帮助