Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有element.style 'margin-left: 0;'一ul堂课。我想摆脱它,但我无法更改 js 文件而不弄乱一切,所以我想知道是否有办法在我的 CSS 中禁用它?提前致谢。
element.style 'margin-left: 0;'
ul
在你的 CSS 中做
ul.something { margin-left: auto !important; // or whatever px instead of auto }
如果它是要加载的最后一个样式表,这在大多数情况下都会起作用,否则它可能会再次被不同的样式覆盖。