是否可以重写内联css并使内联css属性不起作用?
问题描述:
我在html页面组件,如下是否可以重写内联css并使内联css属性不起作用?
<div style='right:2px;'>
</div>
是否有可能重写internal css
的right
属性,使其不会做干活的意思是正确的属性不应该work.Can谁能帮助?
答
使用!important
来覆盖它。有关详细信息check these usages
div {
right: 100px !important;
}
<div style='right:2px; position:absolute;'>
hai
</div>