Attribute selectors, JavaScript and IE8

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

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

The HTML looks like:

User Name
5条回答
  •  旧时难觅i
    2021-01-18 21:35

    to avoid inevitable cross-browser compatibility issue's with javascript/css I would recommend using jQuery.

    For example, to highlight an element via the jQuery framework this is all that it takes...

    $("div").click(function () {
          $(this).effect("highlight", {}, 3000);
    });
    

提交回复
热议问题