摘要: 车牌号正则表达式:<input datatype="/^[\u4e00-\u9fa5]{1}[A-Z]{1}[A-Z_0-9]{5}$/"> JS: window.document.getElementById('wagonNumber').onblur = function () { var re 阅读全文
posted @ 2017-12-22 17:33 苏小白啊 阅读(5160) 评论(0) 推荐(0) 编辑
摘要: CSS改变:input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill{ -webkit-box-shadow: 0 0 0px 1000px white inset } 阅读全文
posted @ 2017-12-22 17:29 苏小白啊 阅读(3145) 评论(0) 推荐(1) 编辑
摘要: <meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"><m 阅读全文
posted @ 2017-12-22 17:28 苏小白啊 阅读(311) 评论(0) 推荐(0) 编辑
摘要: *, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 阅读全文
posted @ 2017-12-22 17:25 苏小白啊 阅读(444) 评论(0) 推荐(0) 编辑
摘要: <marquee behavior="scroll"><img src="__STATIC__/index/images/loading.jpg" alt="" style="width: 100%;height: 50px"/><img src="__STATIC__/index/images/l 阅读全文
posted @ 2017-12-22 17:23 苏小白啊 阅读(1150) 评论(0) 推荐(0) 编辑
摘要: document.getElementById("search").addEventListener('input',function(){console.log(this.value);}); 阅读全文
posted @ 2017-12-22 16:53 苏小白啊 阅读(5448) 评论(0) 推荐(0) 编辑
摘要: 1 判断是否为数组类型 2 判断是否为字符串类型 3 判断是否为数值类型 !isNaN(变量) 如果为true就是数字类型 4 判断是否为日期类型 5 判断是否为函数 6 判断是否为对象 一.判断是否为数组类型 <script type="text/javascript"> //<![CDATA[  阅读全文
posted @ 2017-12-22 16:49 苏小白啊 阅读(53468) 评论(0) 推荐(0) 编辑
摘要: 1. 给他们两个的父元素添加font-size:0 2.把两个元素标签挨着写 eg: <span></span><span></span> 阅读全文
posted @ 2017-12-22 16:47 苏小白啊 阅读(266) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <meta name="viewport" content="width=device-width, initial-scal 阅读全文
posted @ 2017-12-22 16:30 苏小白啊 阅读(893) 评论(0) 推荐(0) 编辑
摘要: 1. touchstart:手指放在一个DOM元素上。 2. touchmove:手指拖曳一个DOM元素。 3. touchend:手指从一个DOM元素上移开。 阅读全文
posted @ 2017-12-22 16:28 苏小白啊 阅读(138) 评论(0) 推荐(0) 编辑
摘要: <body> <input type="text" value="ios端点击document,input框不会失去焦点"> <input class="input" type="text" value="已hack,点击document可失去焦点"> <script> window.onload 阅读全文
posted @ 2017-12-22 16:25 苏小白啊 阅读(960) 评论(0) 推荐(0) 编辑