css3样式被覆盖
黄舟
黄舟 2017-04-17 11:41:18
0
3
501

我下面的scale被上面的translateX覆盖了,这是怎么回事
上面是动态添加的?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(3)
阿神

The style listed above will overwrite the style below . If you want the style below to take effect, you can add !important after the style below:

transform:scale(0,0) !important;
刘奇

It is related to CSS priority. The style written on the html tag has the highest priority. Dynamically added styles are added to the tag

Ty80

Dynamically added styles are placed in the style attribute and have the highest priority.

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