默认情况下按钮和列表标题文字过长时,将自动截断,并用。。。表示截断的部分,但可以通过自定义ui-btn-text来回复默认值。
此外data-iconpos属性改为notext,还可以创建一个没有任何标题的文字按钮
<style type="text/css">
.ui-btn-text{ white-space: normal}
</style>
<div data-role="page" id="page1">
<div data-role="header"><h1>头部栏</h1></div>
<div data-role="content">
<a href="#" data-role="button"
data-theme="a">一个很长标题文字的按钮一个很长标题文字的按钮一个很长标题文字的按钮一个很长标题文字的钮</a>
<a href="#" data-role="button"
data-theme="a" data-iconpos="notext">
这是一个很长标题的按钮</a>
</div>
<div data-role="footer"><h4>©2012 rttop.cn studio</h4></div>
</div>