CSS compatibility problems this. style. cursor = "" hand ""

Source: Internet
Author: User

By Rook
First look at this sentence CopyCode The Code is as follows: <a href = '# 'onmouseover = "this. style. cursor = 'hand' "onmouseout =" this. style. cursor = 'default' "onclick =" document. getelementbyid ('showcontent '). innerhtml = ''; return false;">

</A>

There is no problem in IE. When you move the mouse over, a small hand shape will appear, but in FF, it is only effective when you draw it for the first time, this is effective because there is an anchor a, not the result of onmouseover.
I found a lot on the internet, saying that you only need to make this. style. cursor = 'hand' to this. style. cursor = 'pointer ', but when you move the cursor in FF, a small hand appears only for the first time.
In fact, it is also possible to achieve the same effect in IE under ff. Our solution is to use CSS hack (does it add this one to CSS hack ?)Copy codeThe Code is as follows: <a href = '# 'onmouseover = "this. style. cursor = 'pointer '; this. style. cursor = 'hand' "onmouseout =" this. style. cursor = 'default' "onclick =" document. getelementbyid ('showcontent '). innerhtml = ''; return false;">

</A>

Passed the test in IE7 and ff3.0.3.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.