html – 除了文本元素之外,CSS nowrap?

html – 除了文本元素之外,CSS nowrap?,第1张

概述有没有办法避免div的包装 当内容不仅仅是文本时,内容。几个按钮? 空白:NOWRAP;应该做的伎俩 #foo { white-space:nowrap; width: 100px;} <div id="foo"> <input type="button" value="hello"/> <input type="button" value="hello"/> <input 有没有办法避免div的包装
当内容不仅仅是文本时,内容。几个按钮?解决方法 空白:nowrap;应该做的伎俩
#foo {  white-space:nowrap;  wIDth: 100px;}
<div ID="foo">  <input type="button" value="hello"/>  <input type="button" value="hello"/>  <input type="button" value="hello"/>  <input type="button" value="hello"/>  <input type="button" value="hello"/>  <input type="button" value="hello"/>  <input type="button" value="hello"/></div>

Demo

总结

以上是内存溢出为你收集整理的html – 除了文本元素之外,CSS nowrap?全部内容,希望文章能够帮你解决html – 除了文本元素之外,CSS nowrap?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1111888.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-29
下一篇2022-05-29

发表评论

登录后才能评论

评论列表(0条)

    保存