Jquery mobile jqm长可折叠集管卡车运输
我们需要在可折叠文件中有一个多行标签,因为它们在en JQM 1.4或更高版本中被截断Jquery mobile jqm长可折叠集管卡车运输,jquery-mobile,Jquery Mobile,我们需要在可折叠文件中有一个多行标签,因为它们在en JQM 1.4或更高版本中被截断 <div data-role="collapsible-set"> <div data-role="collapsible"> <h3>My header with long text that truncated when viewing on mobile device or small screens.</h3> <fie
<div data-role="collapsible-set">
<div data-role="collapsible">
<h3>My header with long text that truncated when viewing on mobile device or small screens.</h3>
<fieldset data-role="controlgroup">
...
A solution that worked for jqm 1.3 was:
.ui-mobile .ui-page .ui-content .ui-collapsible .ui-collapsible-heading .ui-btn-text {
white-space : normal;
}?
当在移动设备或小屏幕上查看时,我的标题带有被截断的长文本。
...
适用于jqm 1.3的解决方案是:
.ui mobile.ui页面.ui内容.ui可折叠.ui可折叠标题.ui btn文本{
空白:正常;
}?
截断/10254192#10254192
如图所示:
尽管如此,由于jqm版本1.4不推荐使用.ui btn文本,该解决方案不再有效
问题:如何避免长文本被截断?或者换句话说,如何获取可折叠文件的多行标签
感谢文本直接包含在锚定标记中,带有一类ui可折叠标题切换。因此,这应该是可行的:
.ui-collapsible-heading-toggle {
white-space : normal;
}
文本直接包含在带有ui可折叠标题切换类的锚定标记中。因此,这应该是可行的:
.ui-collapsible-heading-toggle {
white-space : normal;
}