在JQuery Mobile的Button中的文本,我想在按钮的左侧和右侧设置文本

时间:2012-10-30 06:38:23

标签: jquery iphone html html5 jquery-mobile

我想在左侧和右侧的jquery按钮中设置文本,如下图所示?

<ul id="listid" data-theme="c" data-role="listview"> 

   <li><a href="#"><h3 class="ui-li-heading">Text 1</h3><p class="ui-li-desc">Date 
   1</p></a></li>
   <li><a href="#"><h3 class="ui-li-heading">Text 2</h3><p class="ui-li-desc">Date 
   2</p></a></li>

</ul>  

enter image description here

1 个答案:

答案 0 :(得分:1)

出于此目的使用课程ui-li-aside

<ul id="listid" data-theme="c" data-role="listview"> 
   <li>
    <a href="#">
      <h3 class="ui-li-heading">Text 1</h3>
      <p class="ui-li-desc">Date 1</p>
      <p class="ui-li-aside">Score 1</p>
    </a>
   </li>
   <li>
    <a href="#">
      <h3 class="ui-li-heading">Text 2</h3>
      <p class="ui-li-desc">Date 2</p>
      <p class="ui-li-aside">Score 2</p>
    </a>
   </li>
</ul>