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

<!DOCTYPE html>

<html>

    <head>

        <meta charset="utf-8">

        <style>

            h1 {

                letter-spacing: 3px;

            }

             

            h2 {

                letter-spacing: -3px;

            }

            div{

                letter-spacing: 3px;

            }

            p{

                letter-spacing: -3px;

            }

        </style>

    </head>

 

    <body>

        <h1>This is heading 1</h1>

        <h2>This is heading 2</h2>

        <div>这是一段测试文本!</div>

        <p>这是一段测试文本!</p>

    </body>

 

</html>

效果图:

1.png

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

以上就是css怎么设置文字间距的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

css如何实现自适应分隔线?方法介绍

使用html和css的新特性实现响应式布局

css 9pt等于多少px

@keyframes是什么

css word-wrap属性怎么用

兼容ie的css写法有哪些

css滚动条颜色怎么设置

css background-color属性怎么用?

jquery怎么取消css样式

css animation-duration属性怎么用

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




打赏

取消

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

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

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

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

评论

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