<!DOCTYPE html><html> <head> <title>prev + next选择器</title> <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <div> 码农家族 <label></label> <p></p> <label></label> <label></label> </div> <label></label> <script type="text/javascript"> $("p+").css("background-color","red"); </script> </body></html>
- 1 回答
- 0 关注
- 1381 浏览
添加回答
举报
0/150
提交
取消