<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 8 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 8 年前。
我的下拉菜单有这个小问题。 我需要宽度适合内容里面的内容
在我的 CSS 中,我正在使用
width: -ms-max-content;
width: -webkit-max-content;
width: -moz-max-content;
width: -o-max-content;
但它在 IE 上不起作用,是否有其他方法可以做到这一点? 谢谢
最佳答案
你能试试这个代码吗?
ul li a{
white-space:normal;
}
关于html - Bootstrap 3 下拉菜单不适合内容的宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25767923/