【问题标题】:Reduce gap between jquery mobile listview thumbnail and text减少jquery mobile listview缩略图和文本之间的差距
【发布时间】:2013-07-21 15:09:50
【问题描述】:

我有以下代码我希望能够减少缩略图和每个列表视图内的描述列表之间的差距。

我的 CSS

.myParagraph.ui-li-desc {
      color:#333;
      overflow:show;
      white-space:normal;
      height:28px;
      margin-bottom:0px;
    } 

我的标记

 listitems_markup = '<li><img src="' + itemThumbnail + '"><div class="myParagraph"><ul data-inline="true" style="font-size:60%; font-weight:normal;"><li style="white-space:normal">You viewed ' + itemName + '</li><li style="white-space:normal">You spent '+itemTimeSpent+' on this activity</li><li style="white-space:normal">You '+itemRating+' this item</li><p class="ui-li-aside">'+itemViewedTime+'</p></ul></div></li>';

这就是它的样子

【问题讨论】:

    标签: javascript jquery-mobile jquery-mobile-listview


    【解决方案1】:

    您可能希望减少大多数浏览器自动设置的列表的左侧填充。

    ul{
    padding-left:10px; //do not set this to 0 because of the list marks
    border-left:0px;
    margin-left:0px;
    }
    

    【讨论】:

    • 安德拉斯我有一个问题,当我转到另一个页面并返回样式更改时,它又回到了一个很大的差距
    • 确保在您到达的每个页面上的答案中使用相同的 CSS 代码。 (与其使用多页内联 CSS,不如为所有样式使用一个 css 文件)
    猜你喜欢
    • 1970-01-01
    • 2011-12-31
    • 2021-06-30
    • 1970-01-01
    • 2019-01-25
    • 2021-01-23
    • 1970-01-01
    • 1970-01-01
    • 2011-07-16
    相关资源
    最近更新 更多