• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Adah
不要在最能吃苦的时候选择安逸
博客园    首页    新随笔    联系   管理    订阅  订阅
2017年8月3日
A锚点实现,滚动页面内容改变tab选项
摘要: Css: ul{margin:0;padding:0;list-style:none;} a{ text-decoration: none; outline:none; -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-tap-highlight 阅读全文
posted @ 2017-08-03 15:36 Adah 阅读(2845) 评论(0) 推荐(0)
禁止页面内选择文本
摘要: -webkit-user-select onselectstart='return false' 阅读全文
posted @ 2017-08-03 15:14 Adah 阅读(231) 评论(0) 推荐(0)
判断浏览器
摘要: if((navigator.userAgent.indexOf('MSIE')>=0 && (navigator.userAgent.indexOf('Opera')<0{alert('你是使用IE') else if(navigator.userAgent.indexOf('Firefox')>= 阅读全文
posted @ 2017-08-03 15:12 Adah 阅读(121) 评论(0) 推荐(0)
不同浏览器中scrollHeight的比较
摘要: 每个浏览器的兼容性不同所以就有了如下判断方案 document.body是DOM中Document对象里的body节点, document.documentElement是文档对象根节点(html)的引用。 1.document.documentElement.scrollHeight与docume 阅读全文
posted @ 2017-08-03 15:01 Adah 阅读(562) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3