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

<style>

.p1{

width:200px;

border:1px solid #ccc;

word-break:normal;

}

  

.p2{

width:200px;

border:1px solid #ccc;

word-break:keep-all;

}

  

.p3{width:200px;

border:1px solid #ccc;

word-break:break-all;

}

</style>

</head>

<body>

<p class="p1">Php Chinese website provides a large number of free, original,

high-definition php video tutorials.</p>

<p class="p2">Php Chinese website provides a large  &nbsp;number of free,

original, high-definition php video tutorials.</p>

<p class="p3">Php Chinese website provides a large number of free, original,

 high-definition php video tutorials.</p>

</body>

效果图:

a88c5e9c17fdf8f8f7c86a4381cdb2a.png

相关教程推荐:CSS视频教程

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

返回前面的内容

相关阅读 >>

css怎么让图片横着排列

html5、css实现文字阴影效果实例分享

css hanging-punctuation属性怎么用

bootstrap 如何修改css样式

css %是什么单位

css list-style属性怎么用

css层叠样式表是什么

css如何修改字体

css3和less的区别是什么

css怎么实现超出两行显示省略

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




打赏

取消

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

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

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

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

评论

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