选择鼠标指针浮动在其上的元素,并设置其样式:hover

    xiaoxiao2021-12-14  26

    <!DOCTYPE html> <html> <head> <style> a:hover { background-color:yellow; } </style> </head> <body> <a href="http://www.w3school.com.cn">W3Sschool</a> <a href="http://www.google.com">Google</a> <a href="http://www.wikipedia.org">Wikipedia</a> <p><b>注释:</b>:hover 选择器鼠标指针在其上浮动的链接设置样式。</p> </body> </html> 选择鼠标指针浮动在其上的元素,并设置其样式:
    转载请注明原文地址: https://ju.6miu.com/read-971827.html

    最新回复(0)