我下面的scale被上面的translateX覆盖了,这是怎么回事上面是动态添加的?
scale
translateX
人生最曼妙的风景,竟是内心的淡定与从容!
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:
!important
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
Dynamically added styles are placed in the style attribute and have the highest priority.
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: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
Dynamically added styles are placed in the style attribute and have the highest priority.