如何在JQMobile中将列表背景设置为透明。

时间:2013-10-23 12:02:20

标签: android css html5 jquery-mobile cordova

嗨我是phonegap和jQueryMobile的新手我在HTML5中使用以下代码作为背景

<div data-role=content>

    <ul id=list1 data-role=listview data-inset=true data-theme="d">
      <li>
    <a href="#">
    <img src="images/eventsimages/Word-icon.png">
    <h2>Ms-Word</h2>
    <p>Open with Word Document.</p>
    </a>
  </li>
  <li>
  <a href="#">
  <img src="images/eventsimages/Excel-icon.png">
  <h2>Ms-Excel</h2>
  <p>Open with Excel Document</p>
  </a>
  </li>
  <li>
  <a href="#">
  <img src="images/eventsimages/PowerPoint-icon.png">
   <h2>Ms-PowerPoint</h2>
  <p>Open with PowerPoint Document</p>
  </a>
  </li>
</ul>
</div>

jQuerymobile1.3.2.css中的transperancy .ui-listview {margin:0 background:rgba(0,0,0,0.2);} 。但不正常。请帮助我,提前谢谢。

1 个答案:

答案 0 :(得分:2)

background-color:rgba(255,0,0,0.5);