Is a CSS property starting with a hash (#) valid?

前端 未结 6 464
抹茶落季
抹茶落季 2020-12-03 17:59

What does the following CSS do and is it valid?

h4 {
    width: 83%;
    #width: 75%;
}
6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 18:48

    BTW if the second width was not preceded by #, it would take width = 75% and not 83%. The last value always overrides all the preceding ones. As others pointed out, it could be a hack, which I don't know but most likely a syntax error.

提交回复
热议问题