<div data-role="content">
<p> short button or long text button</p>
<p> do not need to control width. because button control text width in case content area<p>
- <div data-role="button" data-inline="true">Text Button Test</div>
- <div data-role="button" data-inline="true">Text Button Test. long text line</div>
+ <div data-role="button" data-inline="true">Text Button</div><br>
+ <div data-role="button" data-inline="true">Long Text Button Test</div>
<br>
<p> but some case, for example width fixed area or narrow width<br>
browser change text to ellipsis </p>
<label id="textposition" for="segment863">This button is long<br>please type 2line</label>
</fieldset> <br>
<p> to make text in button, 2 line
- <p> Simple making step is ...<br><br>
- 1. first insert <br> tag between text <br><br>
- 2. then set fontsize to see text in small area <br>
- ex> $( "#textposition .ui-btn-text" ).css("font-size", "12px"); <br><br>
- 3. if element attribute or inner attributes has padding-top/bottom,<br>
- control this value because this value hide some text top/bottom <br>
- ex> $( "#textposition" ).find("span").css("padding-top", "2px"); <br><br>
- 4. last control height between line text using line-height <br>
- ex> $( "#textposition" ).find("span").css("line-height", "10px"); <br><br><br><br>
+ <p> Simple making step is ...<br>
+ <div>
+ <p style="margin-right:0.5em; padding:1em; font-size:0.7em; background-color:whitesmoke; color:black; border-width:3px; border-style:inset">
+ 1. first insert <br> tag between text.<br><br>
+ 2. then set fontsize to see text in small area.<br>
+ var $elTxt = $( "#textposition" );<br>
+ $elTxt.find( ".ui-btn-text" ).css("font-size", "12px");<br><br>
+ 3. if element attribute or inner attributes has padding-top/bottom,
+ control this value because this value hide some text top/bottom.<br>
+ $elTxt.find("span").css("padding-top", "2px");<br><br>
+ 4. last control height between line text using line-height.<br>
+ $elTxt.find("span").css("line-height", "10px");<br>
+ </p>
+ </div><br>
</div>
<div data-role="footer">
</div>