Is there a CSS selector for elements lacking an attribute?

后端 未结 4 455
一整个雨季
一整个雨季 2021-02-04 23:44

I understand that css rules can target elements specified by attribute values, e.g.:

input[type=\"text\"] {}

Can I make a rule that targets ele

4条回答
  •  再見小時候
    2021-02-05 00:06

    The only solution that worked for me was to place a:link { } within my code.

    I also tried

    a:not([href]) input:not([href=""]) input:not([href~=""])

    But for a .scss file with multiple a tags used as standard code blocks (not my idea), this was the only solution.

提交回复
热议问题