Javascript 如何在jQuery移动网格按钮文本中添加空白:normal?
以下是我的jQuery移动网格按钮代码:Javascript 如何在jQuery移动网格按钮文本中添加空白:normal?,javascript,jquery,css,jquery-ui,jquery-mobile,Javascript,Jquery,Css,Jquery Ui,Jquery Mobile,以下是我的jQuery移动网格按钮代码: <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> &l
<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>
生意
数字中心
就业
现在我想添加
空白:normal
来包装按钮文本。如何以及在何处为上述代码添加空白:normal
?您可以应用CSS规则:
button {
white-space: normal !important;
}
但是按钮高度将不再相等