iOs 9 uiWebView忽略css内联
我有一个内联CSS,由javascript在绝对定位的元素上设置 它的设定值是:88px uiWebView显示此属性已设置为“样式”面板上的元素,但从视觉上看,它从未应用 对于top属性,该元素有几个其他CSS规则,但所有这些规则都被覆盖 如果我对它们进行注释,只让一条规则应用相同的top属性样式,它就会起作用 有什么想法吗 我的HTML:iOs 9 uiWebView忽略css内联,css,uiwebview,ios9,inline,Css,Uiwebview,Ios9,Inline,我有一个内联CSS,由javascript在绝对定位的元素上设置 它的设定值是:88px uiWebView显示此属性已设置为“样式”面板上的元素,但从视觉上看,它从未应用 对于top属性,该元素有几个其他CSS规则,但所有这些规则都被覆盖 如果我对它们进行注释,只让一条规则应用相同的top属性样式,它就会起作用 有什么想法吗 我的HTML: <ion-content class="has-subheader has-fixed-bottom scroll-content ionic-sc
<ion-content class="has-subheader has-fixed-bottom scroll-content ionic-scroll has-header">
//overriden by inline CSS rule
.platform-ios.platform-cordova:not(.fullscreen) .has-header, .platform-ios.platform-cordova:not(.fullscreen) .bar-subheader {
top: 44px;
}
//overriden by inline CSS rule
.platform-ios.platform-cordova:not(.fullscreen) .has-subheader {
top: 108px;
}
//overriden by inline CSS rule
.platform-ios.platform-cordova:not(.fullscreen) .bar-subheader, .platform-ios.platform-cordova:not(.fullscreen) .has-header, .platform-ios.platform-cordova:not(.fullscreen) .tabs-top>.tabs, .platform-ios.platform-cordova:not(.fullscreen) .tabs.tabs-top {
top: 64px;
}
// with this not commented works
.has-subheader {
top: 88px;
}
.has-header {
top: 44px;
}