CSS/HTML

推荐列表 站点导航

当前位置:首页 > 脚本编程 > CSS/HTML >

css怎么把字体加粗加大

来源:网络整理  作者:  发布时间:2020-12-17 16:22
css把字体加粗加大的方法:可以利用font-weight属性来实现,如【font-weight: bold;】。font-weight属性用于设置文本的粗细,...

相关属性:

(学习视频分享:css视频教程

normal 默认值。定义标准的字符。

属性值:

bolder 定义更粗的字符。

bold 定义粗体字符。

font-weight 属性设置文本的粗细

<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>

实现效果:

lighter 定义更细的字符。

css怎么把字体加粗加大

代码示例:

4091640c1186a3121b0f6c56256eab6.png

css把字体加粗加大的方法:可以利用font-weight属性来实现,如【font-weight: bold;】。font-weight属性用于设置文本的粗细,bold用于定义粗体字符。

inherit 规定应该从父元素继承字体的粗细。

相关热词: CSS

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://v30.fanwenzhu.com/jiaob/cssm/4874.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

css怎么把字体加粗加大

2020-12-17 编辑:

相关属性:

(学习视频分享:css视频教程

normal 默认值。定义标准的字符。

属性值:

bolder 定义更粗的字符。

bold 定义粗体字符。

font-weight 属性设置文本的粗细

<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>

实现效果:

lighter 定义更细的字符。

css怎么把字体加粗加大

代码示例:

4091640c1186a3121b0f6c56256eab6.png

css把字体加粗加大的方法:可以利用font-weight属性来实现,如【font-weight: bold;】。font-weight属性用于设置文本的粗细,bold用于定义粗体字符。

inherit 规定应该从父元素继承字体的粗细。

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://v30.fanwenzhu.com/jiaob/cssm/4874.shtml

相关文章

风云图片

推荐阅读

返回CSS/HTML频道首页