Defining CSS properties twice

前端 未结 3 1691
北海茫月
北海茫月 2020-12-16 11:50

general.css

#feedback_bar
{
  /*props*/
}

another.css

#feedback_bar
{
  /*props*/
}

Is this allowed? Will

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-16 12:43

    The one that is loaded last overwrites the previous declaration(s). As for being allowed, css cannot throw errors at you :P. Probably not a good idea though.

提交回复
热议问题