这是我的 jQuery Mobile Grid 按钮代码:
<div class="ui-grid-b my-breakpoint">
<div class="ui-block-a"><button type="button" data-theme="c"> <img src="res/icon/android/business.png" height="45"><br>Business</button></div>
<div class="ui-block-b"><button type="button" data-theme="c"> <img src="res/icon/android/digital_center.png" height="45"><br>Digital Center</button></div>
<div class="ui-block-c"><button type="button" data-theme="c"> <img src="res/icon/android/employment.png" height="45"><br>Employment</button></div>
</div>
现在我想添加 white-space:normal
来包装按钮文本。如何以及在何处为上述代码添加 white-space:normal
?
最佳答案
您可以应用 CSS 规则:
button {
white-space: normal !important;
}
但是按钮高度将不再相等...
关于javascript - 如何添加空白 :normal in this jQuery Mobile grid button text?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30445587/