<!DOCTYPE html> <html> <head> <style> span{ cursor:pointer} </style> <script src="http://code.jquery.com/jquery-latest.min.js"></script> </head> <body> 用 JQ 框架 你的代码 例如: <span>aaa </span> <span>bbb</span> <span>ccc</span> <span>DDD</span> <script> $(function(){ $("span").click(function(){ $("span").css({"fontWeight":"normal"})//取消所有的 $(this).css({"fontWeight":"bold"})//设置当前的 }) }) </script> </body></html>
css菜单样式反转
最新推荐文章于 2023-07-21 15:44:01 发布