给点击哪个导航给哪个导航加背景
2017-11-02 14:56
253 查看
<script type="text/javascript"> $(document).ready(function(){ $(".menu a").each(function(){ $this = $(this); if($this[0].href==String(window.location)){ $this.addClass("on"); } }); }); </script>
相关文章推荐
- HTML导航 - 点击更改背景
- js实现点击哪个li哪个li背景为红色
- 点击哪个哪个超链接的背景就变味红色,并且超链接不跳转
- 设置背景图片+实现图片中某部分可点击(图片导航)
- 按钮点击切换背景图片(两种情况)
- 获取到当前点击的程序(例如添加程序锁,需要当前知道点击的程序是哪个)
- 点击按钮,弹出层位于屏幕中间,背景变灰
- 图片垂直居中,小图铺满div,css3点击变红叉,css背景图拉伸铺满
- ListView取消默认点击背景颜色
- 点击背景收起所有键盘
- 实现 鼠标点击表格行背景变色,移开后点击另一行时另一行变色而前一行恢复原来的背景色
- Swift实践1 点击背景关闭键盘
- 点击弹出居中的遮罩层,背景变暗
- DOM点击的文本框背景为黄色其他的为白色
- UIAlertController点击背景回收弹窗的问题
- 简单的jquery点击弹出背景变暗遮罩效果
- 鼠标点击表格行背景变色
- td点击背景变色特效(兼容ff/ie)
- Android实现圆角背景点击效果
- UITableViewCell点击时背景颜色