使用选择器隐藏超链接地址
<title></title>
</head>
<body>
<div style="float:right;text-align: right;">
<a href="1.html">首页</a>
| <a href="1.html" class="main">登录</a>
| <a href="1.html" class="main">注册</a>
| <a href="1.html" class="main">找回密码</a></div>
<script>
$(document).ready(function(){
$("a.main").mouseover(function(){
window.status="http://www.mrbccd.com";
return true;
}).mouseout(function(){
window.status="完成";return true;
});
});
</script>
</body>
parent>child选择器
只能选择父元素的直接子元素
籍 贯:
生 日:
E-mail:
prev+next选择器
两个同级别元素
匹配紧接在prev后的next
第一个p
第3个p
第2个p
</fieldset>
外面的p
prev~siblings选择器
第一个
第2个
</div>
<p>第3个</p>
<script charset="GBK">
$(document).ready(function(){
$("div~p").addClass("background"); //筛选同辈元素
});
</script>
</body>
简单过滤器
编号 | 祝福对象 | 祝福者 | 字条内容 | 发送时间 |
1 | 乐乐 | 妈妈 | 愿你身体健康 | 2019-10-24 |