css里white-space:nowrap代表字体超出边框也不换行
<p class="text-nowrap" style="border: 1px solid red;width: 50px">Bootstrap 框架Bootstrap 框架Bootstrap 框架Bootstrap 框架Bootstrap 框架Bootstrap 框架Bootstrap 框架Bootstrap 框架Bootstrap 框架Bootstrap 框架Bootstrap 框架</p>
css属性
效果
注释后
效果
本文介绍了 CSS 中 white-space 属性的 nowrap 值的作用,即当内容超出边框宽度时,不会进行换行处理。通过一个具体的 Bootstrap 框架实例展示了该属性的实际应用效果。
1101

被折叠的 条评论
为什么被折叠?



