【问题标题】:jQuery Mobile ListView with Gradients as Custom Background带有渐变作为自定义背景的 jQuery Mobile ListView
【发布时间】:2014-05-22 11:20:03
【问题描述】:

我正在尝试使用自定义渐变作为背景设置我的列表视图的样式(http://www.colorzilla.com/gradient-editor/ 生成的渐变)

我想要每个

  • 包含不同的渐变作为 colorzilla 的背景 + 我想将每个的高度加倍
  • 代码:http://jsfiddle.net/flymen8888/zgNJy/

    非常感谢您的帮助!最好的

    <!-- Start of index page -->
        <div data-role="page">
            <div data-role="content">
    
            <ul data-role="listview" data-inset="false">
                <li><a href="#">PAGE A</a></li>
                <li><a href="#">PAGE B</a></li>
                <li><a href="#">PAGE C</a></li>
                <li><a href="#">PAGE D</a></li>
            </ul>
            </div><!-- /content -->
            <div data-role="footer" data-theme="d">
        <!-- /footer -->
        </div><!-- /index page -->
    
  • 【问题讨论】:

      标签: jquery css jquery-ui jquery-mobile


      【解决方案1】:

      将样式添加到 listview 中的 anchors

      .ui-listview a {
        height: 60px;
        background: red; /* or gradient */
      }
      

      Demo

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-09-07
        • 2020-12-29
        • 1970-01-01
        相关资源
        最近更新 更多