您好,欢迎访问一九零五行业门户网

css怎么把字体加粗加大

css把字体加粗加大的方法:可以利用font-weight属性来实现,如【font-weight: bold;】。font-weight属性用于设置文本的粗细,bold用于定义粗体字符。
相关属性:
font-weight 属性设置文本的粗细
(学习视频分享:css视频教程)
属性值:
normal    默认值。定义标准的字符。    
bold    定义粗体字符。    
bolder    定义更粗的字符。    
lighter    定义更细的字符。    
inherit    规定应该从父元素继承字体的粗细。    
代码示例:
<html><head><style type="text/css">p.normal {font-weight: normal}p.thick {font-weight: bold;font-size:250%;}p.thicker {font-weight: 900;font-size:200%;}</style></head><body><p class="normal">this is a paragraph</p><p class="thick">this is a paragraph</p><p class="thicker">this is a paragraph</p></body></html>
实现效果:
相关推荐:css教程
以上就是css怎么把字体加粗加大的详细内容。
其它类似信息

推荐信息