摘要: 使用a标签时候会遇到这种情况,虽说使用这两种方式页面都不会跳转,但是具体有什么区别呢? 1、a标签中的#。 如果使用这种方式的话,页面不会跳转 ,但是会定位到页面的最上端,因为它包含了一个位置信息,默认的锚是#top 也就是网页的上端,所以有的时候会发现,如果页面内容很多的时候,在页面底部点击按钮, 阅读全文
posted @ 2017-11-06 11:10 森界降临 阅读(219) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"> <meta name="format-detection" cont 阅读全文
posted @ 2017-11-03 11:02 森界降临 阅读(1698) 评论(0) 推荐(0) 编辑
摘要: 简单、粗暴、直接上代码 阅读全文
posted @ 2017-11-03 10:57 森界降临 阅读(18118) 评论(0) 推荐(0) 编辑
摘要: 直接上代码吧 阅读全文
posted @ 2017-11-03 10:53 森界降临 阅读(397) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"> <meta name="format-detection" cont 阅读全文
posted @ 2017-11-03 10:29 森界降临 阅读(1104) 评论(0) 推荐(0) 编辑