【发布时间】:2013-12-10 17:18:33
【问题描述】:
我希望将padding-top 或20px 添加到我的整个jQuery Mobile 页面。 (data-role="header" data-position="fixed" 元素位于页面顶部)。我怎样才能做到这一点?
body{
padding-top: 20px;
}
不起作用。我该如何解决这个问题?
【问题讨论】:
标签: jquery jquery-mobile padding
我希望将padding-top 或20px 添加到我的整个jQuery Mobile 页面。 (data-role="header" data-position="fixed" 元素位于页面顶部)。我怎样才能做到这一点?
body{
padding-top: 20px;
}
不起作用。我该如何解决这个问题?
【问题讨论】:
标签: jquery jquery-mobile padding
这里有什么关于这个的?
.ui-page {
padding-top: 20px;
}
这个更好?
.ui-content {
margin-top: 40px;
}
【讨论】:
data-position="fixed"
.ui-content, #header { margin-top: 20px; } 似乎有效,现在我只需要更改边距所在位置的背景颜色。
.ui-page{ background-color: green !important; } 不起作用。