The*_*olC 1 truncation jquery-mobile
我在.net MVC4中运行的jquerymobile中有此页面
<div data-role="header" data-theme="b" data-position="fixed">
<h3 style="color:white;">
Name
</h3>
<a href="#" data_icon="back"> Back </a>
<div data-role="fieldcontain" class="test_row">
<fieldset data-role="controlgroup" data-type="horizontal" class="test_row">
<input id="radio3" name="testType" value="2" type="radio" checked="checked" class="test_type">
<label for="radio3" class="test_type">All tests</label>
<input id="radio1" name="testType" value="0" type="radio" class="test_type">
<label id="test_type_label" for="radio1" class="test_type" >Automated</label>
<input id="radio2" name="testType" value="1" type="radio" class="test_type">
<label for="radio2" class="test_type">Manual</label>
</fieldset>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS
.test_row .ui-btn {
text-align: center;
}
.ui-field-contain .ui-controlgroup-controls {
width: 100%;
}
.ui-controlgroup-controls .ui-radio {
width: 33.3%;
}
Run Code Online (Sandbox Code Playgroud)
http://jsfiddle.net/ruds5/jsfiddle
调整结果大小时,中间词(自动)被截断为较短的形式,末尾带有"...".
是否可以防止在单词结尾处截断?
根据更新的问题,这是解决方案.文本样式包含一个与类.ui-btn-inner,按钮文本样式被覆盖如下.
span.ui-btn-inner {
white-space: nowrap !important;
overflow: visible !important;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3113 次 |
| 最近记录: |