css white-space属性怎么用


当前第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

51

<!DOCTYPE html>

<html>

 

    <head>

        <meta charset="UTF-8">

    </head>

 

    <head>

        <style type="text/css">

            .box{

                width: 500px;

                border: 1px solid #000;

                margin-bottom:10px ;

            }

            .p1 {

                white-space: nowrap

            }

        </style>

    </head>

 

    <body>

        <div class="box">

            <p>

                php中文网

                php中文网

                php中文网

                php中文网

                php中文网

                php中文网

                php中文网

                php中文网

                php中文网

            </p>

        </div>

        <div class="box">

            <p class="p1">

                php中文网

                php中文网

                php中文网

                php中文网

                php中文网

                php中文网

                php中文网

                php中文网

                php中文网

            </p>

        </div>

         

    </body>

 

</html>

输出:

1.jpg

以上就是css white-space属性怎么用的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

css如何清除默认样式并设置公共样式

css如何实现圆形头像

css设置外边距的属性名是什么

css中id和class选择器怎么使用

css中px、em、rem的区别是什么?

css怎么设置超链接文本为白色

css如何使用!important规则?(代码示例)

css :not()选择器怎么用

css怎么设置字体位置

css怎么设置右对齐

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




打赏

取消

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

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

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

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

评论

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