p{font-size:2em; }p.test{font-style: italic; } font-weight 此属性值定义了字体的宽度,属性值 lighter细,bold粗,bolder更粗,当然也可以设置具体数值100~900,只能是整百哦~ <p>Original line</p><pclass="test">Test line</p> p{font-size:2em; }p.test{font-weight: lighter; } font-variant...
例子:{font-size:18pt;} 字体大小 4. 字体风格:font-style 语法:{font-style:inherit|italic|normal|oblique} 作用:使文本显示为扁斜体或斜体等表示强调 说明: ·inherit 继承 ·italic 斜体 ·normal 正常 ·oblique 偏斜体 5.字体粗细:font-weight 语法:{font-weight:100-900|bold|bolder|lighter|normal;} ...
font-weight: normal | bold | bolder | lighter | 100~900 说明: 默认值:normal 400等同于normal,而700等同于bold font-style文字样式 为元素内文字设置样式 语法: font-style: normal | italic | oblique font-variant字体变形 设置元素中文本为小型大写字母 语法: font-variant:normal | small-caps font属性...
3字体⼤⼩{font-size:数值|inherit| medium| large| larger| x-large| xx-large| small| smaller| x-small| xx-small} 4字体风格{font-style:inherit|italic|normal|oblique} 5字体粗细{font-weight:100-900|bold|bolder|lighter|normal;} 6字体颜⾊{color:数值;} 7阴影颜⾊{text-shadow:16位⾊...
语法:{font-style:inherit|italic|normal|oblique} 作用:使文本显示为扁斜体或斜体等表示强调 说明: ·inherit 继承 ·italic 斜体 ·normal 正常 ·oblique 偏斜体 5.字体粗细:font-weight 语法:{font-weight:100-900|bold|bolder|lighter|normal;}
Great for bold statements or small sizes. regular Easy, readable icons that blend right in. light When a lighter touch is needed. thin Fits in with the lastest super-light designs. Sharpsolid A dash of class for a bold, sharp look. ...
4. 字体风格:font-style 语法:{font-style:inherit|italic|normal|oblique} 作用:使文本显示为扁斜体或斜体等表示强调 说明: ·inherit 继承 ·italic 斜体 ·normal 正常 ·oblique 偏斜体 5.字体粗细:font-weight 语法:{font-weight:100-900|bold|bolder|lighter|normal;} ...
<style> p.normal { font-weight: normal; } p.light { font-weight: lighter; } p.thick { font-weight: bold; } p.thicker { font-weight: 900; } </style> </head> <body> <p class="normal">这是一个段落。</p> <p class="light">这是一个段落。</p> <p class="thick">这是一个...
p.normal { font-weight: normal;} p.thick { font-weight: bold;} Try it Yourself » Font VariantThe font-variant property specifies whether or not a text should be displayed in a small-caps font.In a small-caps font, all lowercase letters are converted to uppercase letters. However, ...
}Code language:CSS(css) In many cases, that’s all you’ll need. In fact, if you’re usingborstrongyou won’t even have to do that, because they both havefont-weight: boldapplied by default! However, as you may imagine, you have a bit more flexibility than that. Instead ofboldand...