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

前端 未结 6 445
抹茶落季
抹茶落季 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:37

    To basically answer both your questions.

    • The # before the property targets IE7 & IE6 (and lower)
    • No, it's not valid.

    I asked the same question, there's more info there that may be helpful to others:

    Post: " CSS - "#" sign before property "

提交回复
热议问题