Attribute selectors, JavaScript and IE8

前端 未结 5 1337
滥情空心
滥情空心 2021-01-18 21:09

I\'m attempting to use attribute selectors and CSS for formatting elements.

The HTML looks like:

User Name
5条回答
  •  星月不相逢
    2021-01-18 21:37

    You're using unknown attribute hightlight. It's IE so it supports attributes according to its name (what's seems to be harder than supports every attribute name, but... it's IE).

    Just use class="hightlight" - easier to implement and deal with.

提交回复
热议问题