javascript - How can the style of <span> element tag override the imported css?
给我你的怀抱
给我你的怀抱 2017-05-16 13:44:13
0
3
887


Like this, my p tag already has total-money css (there is an attribute in it that controls the width of span). Now I want to write a style after p. I want to remove the width restriction, but I don’t want to write it as width:20. What should I do?
PS. Because I just want to remove the width attribute, and there are many other attributes in total-money

给我你的怀抱
给我你的怀抱

reply all(3)
巴扎黑

The original style is not added!important的话,内联属性优先级是最高的,直接在标签里的style用width:auto;just overwrite it

Ty80

If it has not been modifiedbox-sizing,你要把width去掉,就就width设成100%就好了,因为<p>It is a block-level element

Ty80

Isn’t it width:auto; to cover?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template