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/