Bootstrap具有很好的水平清晰度列表樣式,但是我希望DT內容能夠包裹,而不是被截斷。如何強制Twitter Bootstrap .dl-橫向DT內容換行而不是截斷?
我知道他們的base.css page他們說:「Heads up!水平描述列表將截短太長的詞,以至於不能適應左列固定文本溢出。」
任何人都知道這個問題的解決方法?
這裏是現成的,貨架引導CSS我一直在痛苦上,但沒有成功:
.dl-horizontal {
*zoom: 1;
}
.dl-horizontal:before,
.dl-horizontal:after {
display: table;
content: "";
line-height: 0;
}
.dl-horizontal:after {
clear: both;
}
.dl-horizontal dt {
float: left;
width: 160px;
clear: left;
text-align: right;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
這裏我quesion類似於這個問題,如果這能幫助: Prevent Twitter bootstrap empty <dd> filling with next <dd> value
謝謝提前!
您也可以避開200像素寬度 – tommasop
您還需要調整'瑪格。相應的'dd'元素的'in-left'比'dt'元素的寬度多20px,否則它們之間沒有空格。 – Mike