gpt4 book ai didi

javascript - 如何添加空白 :normal in this jQuery Mobile grid button text?

转载 作者:行者123 更新时间:2023-11-28 07:50:35 24 4
gpt4 key购买 nike

这是我的 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com