Can't override css of element

后端 未结 5 593
时光取名叫无心
时光取名叫无心 2021-01-05 06:51

I have a website with a global template that contains partial templates, but now I\'m stuck with a simple CSS problem:

HTML

5条回答
  •  执笔经年
    2021-01-05 07:25

    !important will override your css

    select#test
    {
        width: 150px !important;
    }
    

    demo

    what if your global css has !important

    Then you could call body select#test{/*call your css*/}

提交回复
热议问题