摘要: <input id="btn1" type="button" value="按 钮" /> <input type="button" value="按 钮" onclick="btn_click()" /> <input type="text" onblur="alert('失去焦点')" /> < 阅读全文
posted @ 2017-09-15 10:51 曉瀦 阅读(78) 评论(0) 推荐(0) 编辑
摘要: <input type="checkbox" id="a" value="" />全选 <input type="checkbox" class="b" value="1" />1 <input type="checkbox" class="b" value="2" />2 <input type= 阅读全文
posted @ 2017-09-15 10:45 曉瀦 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 用符号来描述书写规则:/中间写正则表达式/ ^:匹配开头,$: 匹配结尾;/^ve/以ve开头的/ve$/以ve结尾 \d:一个任意的数字 \w:一个任意的数字或字母 \s:任意字符串 {n}:把左边的表达式重复N遍 {m,n}:把左边的表达式重复至少M遍至多N遍 {m,}:把左边的表达式重复至少M 阅读全文
posted @ 2017-09-15 10:35 曉瀦 阅读(93) 评论(0) 推荐(0) 编辑
摘要: *{ padding: 0px; margin: 0px; } .nav{ width: 500px; height: 35px; border: 1px solid #7FFFD4; position: absolute; top: 0px; left: 0px; } .nav-title{ wi 阅读全文
posted @ 2017-09-15 10:16 曉瀦 阅读(79) 评论(0) 推荐(0) 编辑
摘要: #stage { width: 500px; height: 300px; border: 3px solid black; margin: 100px; overflow: hidden; position: relative; } #banner { width: 3000px; height: 阅读全文
posted @ 2017-09-15 10:13 曉瀦 阅读(73) 评论(0) 推荐(0) 编辑
摘要: .mask { width: 100%; /*height: 500px;*/ position: fixed; top: 0px; left: 0px; background-color: black; opacity: 0.5; } .show { width: 500px; height: 3 阅读全文
posted @ 2017-09-15 10:12 曉瀦 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 间隔执行一段代码(函数):window.setlnterval(“要执行的代码”,间隔的毫秒数) 清除间隔执行:window.clearlnterval(间隔的id);循环一次之后用来清除隔执行的代码 延迟一段时间执行某一段代码(函数):window.setTimeout("要执行的代码“,延迟的毫 阅读全文
posted @ 2017-08-29 09:42 曉瀦 阅读(117) 评论(0) 推荐(0) 编辑
摘要: <script> // var x = prompt("你有房子吗?");// var z = prompt("你有车子?");// var y = prompt("你有能力吗?");// if(x=="有" && z=="有" && y=="有"){// alert("我们结婚吧")// } // 阅读全文
posted @ 2017-08-29 09:30 曉瀦 阅读(104) 评论(0) 推荐(0) 编辑
摘要: <!--rowspan行 src引入来源 colspan列 noresize不要重新改变大小--> <frameset rows="200,*" border="1"> <frame src="../new_file1.html" /> <frameset cols="200,*"> <frame 阅读全文
posted @ 2017-08-29 09:29 曉瀦 阅读(99) 评论(0) 推荐(0) 编辑
摘要: <style> .c4{ width: 100px; height: 50px; /* background-color: #00008B;*/ /*background:cornflowerblue*/ /*背景色*/; /*居中*/ text-align: center; line-height 阅读全文
posted @ 2017-08-29 09:28 曉瀦 阅读(95) 评论(0) 推荐(0) 编辑