摘要: 问题:点击 <a href="18禁.pdf">下载</a> 的时候,Chrome 会自动调用内置的 pdf 阅读器打开,我只想让用户下载这个文件,有什么办法呢? 答案:<a href="18禁.pdf" download>下载</a> 阅读全文
posted @ 2017-01-19 13:12 ghfjj 阅读(2926) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-01-19 13:11 ghfjj 阅读(127) 评论(0) 推荐(0)
摘要: @media (max-width: 374px){} @media (max-width: 767px) { } @media (min-width: 768px) and (max-width: 991px) { } @media (min-width: 992px) and (max-widt 阅读全文
posted @ 2017-01-19 13:11 ghfjj 阅读(963) 评论(0) 推荐(0)
摘要: 1 2 3 4 5 无标题文档 6 7 8 15 static:对象遵循常规流。top,right,bottom,left等属性不会被应用。 relative: 对象遵循常规流,并且参照自身在常规流中的位置通过top,right,bottom,left属性进行偏移时不影响常规流中的任何元素。 absolute:对象脱离常规流,使用top,right... 阅读全文
posted @ 2017-01-19 13:08 ghfjj 阅读(519) 评论(0) 推荐(0)
摘要: http://www.superslide2.com/param.html --superslider插件地址 html css js 阅读全文
posted @ 2017-01-19 13:00 ghfjj 阅读(970) 评论(0) 推荐(0)
摘要: require 用来加载代码,而 exports 和 module.exports 则用来导出代码。但很多新手可能会迷惑于 exports 和 module.exports 的区别,为了更好的理解 exports 和 module.exports 的关系,我们先来巩固下 js 的基础。示例: tes 阅读全文
posted @ 2017-01-18 17:24 ghfjj 阅读(137) 评论(0) 推荐(0)
摘要: JS判断只能是数字和小数点1.文本框只能输入数字代码(小数点也不能输入)<input onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">2. 阅读全文
posted @ 2017-01-18 15:29 ghfjj 阅读(8933) 评论(0) 推荐(0)
摘要: 比如我的网址是 http://www.onemyself.com比如第一页要显示10条数据 那你的limit 0 ,10 对应的网址是 http://www.onemyself.com?p=1 第二页的时候继续显示10条 那你的limit 10,10 对应的网址是 http://www.onemys 阅读全文
posted @ 2017-01-18 15:25 ghfjj 阅读(140) 评论(0) 推荐(0)
摘要: 1 $(document).keyup(function(event){ 2 switch(event.keyCode) { 3 case 27: 4 alert("ESC"); 5 case 96: 6 alert("ESC"); 7 } 8 9 }); 阅读全文
posted @ 2017-01-16 15:01 ghfjj 阅读(286) 评论(0) 推荐(0)
摘要: 这个绝对稳,完美规避</script>问题 阅读全文
posted @ 2017-01-10 17:58 ghfjj 阅读(10588) 评论(0) 推荐(0)