How to smooth the mouse over the entire line of color, to achieve the mouse over color

Source: Internet
Author: User

How to smooth the mouse over the entire line of color, to achieve the mouse over color

How to smooth the color of the mouse over the entire line:
Many websites have this effect, that is, when you place the cursor over a line in the News list, the whole line will change color, although CSS can also be used to achieve this function, however, because many browser versions do not have good support for CSS3, it is a good choice to use jQuery to implement this function.
The code example is as follows:

<! DOCTYPE html> 

The above code implements the required functions. Although it is not beautiful enough, you can modify it as needed. The implementation method is also very simple, that is, the hover () method is used to bind two event handlers to the hover event to add or delete the CSS code that sets the li element background color.

The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 5806.

For more information, see: http://www.softwhy.com/jquery/

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.