search

Home  >  Q&A  >  body text

css3样式被覆盖

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

黄舟黄舟2903 days ago562

reply all(3)I'll reply

  • 阿神

    阿神2017-04-17 11:43:18

    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;

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 11:43:18

    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

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:43:18

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

    reply
    0
  • Cancelreply