css怎么改字体粗细


当前第2页 返回上一页

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

<!DOCTYPE html>

<html>

    <head>

        <meta charset="UTF-8">

        <title>css 文字加粗</title>

        <style>

            .a1{

                font-weight:100;

            }

            .a2{

                font-weight:200;

            }

            .a3{

                font-weight:300;

            }

            .a4{

                font-weight:400;

            }

            .a5{

                font-weight:500;

            }

            .a6{

                font-weight:600;

            }

            .a7{

                font-weight:700;

            }

            .a8{

                font-weight:800;

            }

            .a9{

                font-weight:900;

            }

        </style>

    </head>

    <body>

        <div>

            <p>这是一段测试文字--默认粗细</p>

            <p class="a1">这是一段测试文字</p>

            <p class="a2">这是一段测试文字</p>

            <p class="a3">这是一段测试文字</p>

            <p class="a4">这是一段测试文字</p>

            <p class="a5">这是一段测试文字</p>

            <p class="a6">这是一段测试文字</p>

            <p class="a7">这是一段测试文字</p>

            <p class="a8">这是一段测试文字</p>

            <p class="a9">这是一段测试文字</p>

        </div>

    </body>

</html>

1.png

更多编程相关知识,请访问:编程视频!!

以上就是css怎么改字体粗细的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

css怎么设置元素高度为20px

css如何使用rem布局实现自适应效果

zoom在css中什么意思

如何自定义video播放器样式?

ie css背景图片不显示怎么办

css中文字超出div怎么办

详谈css的flex布局(图文介绍)

深入浅析css text-emphasis属性,看看它的用法!

html和css是什么语言?

详细介绍css属性之媒体类型

更多相关阅读请进入《css》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...