【发布时间】:2014-10-28 20:11:56
【问题描述】:
我有以下由 jQuery Mobile 框架生成的 HTML 和 CSS。我无法控制生成的 HTML。我只能设计它们。
<div class="ui-popup-container slideup in ui-popup-active" id="productSummaryOverlay-popup" tabindex="0" style="max-width: 1201px; top: 0px; left: 17px;">
我想忽略或删除 style 属性中的所有内容,因为它无法全屏显示,并且还提供了我不想要的边距。
如何忽略 style 属性?
【问题讨论】:
-
你试过使用 !important 吗?
-
可能有点 JavaScript?
.setAttribute("style", ""); -
这里解释得很好:stackoverflow.com/questions/19366227/…,希望这可以帮助你[1]:
-
谢谢大家!我按照建议使用 !important 解决了这个问题。谢谢!
标签: css jquery-mobile