2
我正在使用JQuery mobile的可折叠设置,当在移动设备上查看时,我的长标题标题被截断(并且无法读取)。阻止JQuery Mobile可折叠设置标题被截断
例如头定义如下:
<div data-role="collapsible-set">
<div data-role="collapsible">
<h3>My header with lots of text that gets truncated when viewing on mobile device or small screen.</h3>
<fieldset data-role="controlgroup">
...
最终被截断为: 我有很多文字的头...
继其他职位的建议,我想:
<style type="text/css">
.ui-header .ui-title .ui-btn-text .ui-collapsible-heading {
overflow: visible !important;
white-space: normal !important;
}
</style>
...无济于事。
完美,你摇滚贾斯珀! – 2012-04-23 01:12:17
仅供参考,这在Chrome中运行良好,但似乎不适用于iPhone中的Safari webkit。调查为什么这是这种情况 – 2012-04-23 15:52:18
你尝试过使用'!important'吗? – Jasper 2012-04-23 16:16:39