摘要: 特殊格式验证(正则验证) 正则表达式 定界符 / / 反斜杠 \ 代表转义 \r \n \t \\ \" \' ^匹配开头 $匹配结尾 *代表前面的表达式可以出现n次 +代表前面的表达式可以出现至少1次最多不限?代表前面的表达式可以出现0次或1次 {n}前面的表达式出现n次 {n,} 前面的表达式至 阅读全文
posted @ 2016-09-26 15:26 带你疯 阅读(158) 评论(0) 推荐(0) 编辑
摘要: <form action="lizi1.html" method="post"> 非空验证 <input type="text" name="uid" id="uid" onblur="Check()" /> <input type="text" name="pw1" id="pw1" /> <in 阅读全文
posted @ 2016-09-26 15:18 带你疯 阅读(121) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css"> *{ margin:0px auto; padding:0px; font-family:微软雅黑; font-size:16px;} .f{ width:200px; height:30px; background-color:#63C; color 阅读全文
posted @ 2016-09-26 15:11 带你疯 阅读(182) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css">*{ margin:0px auto; padding:0px; font-family:微软雅黑; font-size:14px;}.zhu{ width:200px; height:30px; text-align:center; line-heig 阅读全文
posted @ 2016-09-26 15:09 带你疯 阅读(285) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css">*{ margin:0px auto; padding:0px}#wai{ width:200px; height:10px; border:1px solid #60F;}#nei{ width:0px; height:10px; background 阅读全文
posted @ 2016-09-26 15:04 带你疯 阅读(170) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css">*{ margin:0px auto; padding:0px}#left{ height:600px; background-color:#63C; float:left}#right{ height:600px; background-color:# 阅读全文
posted @ 2016-09-26 15:01 带你疯 阅读(134) 评论(0) 推荐(0) 编辑
摘要: <div style="width:700px; height:500px; margin-top:30px"> <div id="menu"> <div class="list" style="娱乐</div> <div class="list" style="社会</div> <div clas 阅读全文
posted @ 2016-09-26 14:57 带你疯 阅读(190) 评论(0) 推荐(0) 编辑
摘要: <div style="width:1000px; height:250px; margin-top:30px"> <img src="img/11.jpg" width="1000" height="250" /> <img src="img/22.png" width="1000" height 阅读全文
posted @ 2016-09-26 14:52 带你疯 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 通用: onclick 鼠标单击 ondblclick 鼠标双击 onmouseover 鼠标放上 onmouseout 鼠标离开 onmousemove 鼠标移动 表单: onchang 表单的值改变 onblur 失去焦点 onfocus 获得焦点 onselect 选中 阅读全文
posted @ 2016-09-26 14:42 带你疯 阅读(104) 评论(0) 推荐(0) 编辑
摘要: <div style="width:600px; height:100px;"> <select id="year"> </select> 年 <select id="month" onchange="FillDay()"> </select> 月 <select id="day"> </selec 阅读全文
posted @ 2016-09-26 14:34 带你疯 阅读(194) 评论(0) 推荐(0) 编辑
摘要: <div style="width:600px; height:500px; margin-top:20px"> <div style="width:200px; height:300px; float:left"> <select id="list1" size="10" style="width 阅读全文
posted @ 2016-09-26 14:21 带你疯 阅读(267) 评论(0) 推荐(0) 编辑
摘要: <select id="sel" style="width:200px;" size="10"> <option>11</option> <option>22</option> <option>33</option></select><input type="text" id="nr" /><inp 阅读全文
posted @ 2016-09-26 14:13 带你疯 阅读(349) 评论(0) 推荐(0) 编辑
摘要: <div style="width:500px; height:500px; margin:100px 0px 0px 100px"> <input id="btn" type="submit" value="确定" style="width:100px; height:35px" disabled 阅读全文
posted @ 2016-09-26 14:11 带你疯 阅读(305) 评论(0) 推荐(0) 编辑
摘要: <div style="width:500px; height:500px;"> <div style="margin-top:20px;"> <input type="radio" name="sure" id="s1" onclick="KeYong()" />同意 <input type="r 阅读全文
posted @ 2016-09-26 14:07 带你疯 阅读(194) 评论(0) 推荐(0) 编辑
摘要: document对象 1、找元素:(1)gerElementById()根据ID找 (2)gerElementByClassName()根据Class找,返回数组 (3)gerElementByName()根据Name找,返回数组 (4)gerElementByTagName()根据标签名找,返回数 阅读全文
posted @ 2016-09-26 14:05 带你疯 阅读(166) 评论(0) 推荐(0) 编辑
摘要: DOM:文档对象模型 --树模型 文档:标签文档,对象:文档中每个元素对象,模型:抽象化的东西 一:window: 属性(值或者子对象): opener:打开当前窗口的源窗口,如果当前窗口是首次启动浏览器打开的,则opener是null,可以利用这个属性来关闭源窗口。 方法(函数): 事件(事先设置 阅读全文
posted @ 2016-09-26 13:55 带你疯 阅读(136) 评论(0) 推荐(0) 编辑