当前第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>
|
输出:

以上就是css white-space属性怎么用的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
css如何清除默认样式并设置公共样式
css如何实现圆形头像
css设置外边距的属性名是什么
css中id和class选择器怎么使用
css中px、em、rem的区别是什么?
css怎么设置超链接文本为白色
css如何使用!important规则?(代码示例)
css :not()选择器怎么用
css怎么设置字体位置
css怎么设置右对齐
更多相关阅读请进入《css》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » css white-space属性怎么用