2018年6月25日
摘要: 伪类选择器1.first-child:匹配父类元素下的第一个子元素。div > a:first-child; 2.last-child:匹配父类元素下的最后一个子元素。 3.nth-child(n):匹配父类元素下的第几个子元素,odd为奇数,even为偶数,或者用n的表达式来取元素,如2n+1。 阅读全文
posted @ 2018-06-25 15:44 想养猫的通信狗 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 属性选择器: 1.Element[attribute]:选择带有某个属性的元素:input[type]. 2.Element[attribute="value"]选择带有某个值的属性的元素:input[type="email"]. 3.Element[attribute~="value"]:选择属性 阅读全文
posted @ 2018-06-25 10:59 想养猫的通信狗 阅读(175) 评论(0) 推荐(0) 编辑
  2018年6月24日
摘要: 阅读全文
posted @ 2018-06-24 18:14 想养猫的通信狗 阅读(521) 评论(0) 推荐(0) 编辑
  2018年6月23日
摘要: 用户名: Email: 阅读全文
posted @ 2018-06-23 00:40 想养猫的通信狗 阅读(215) 评论(0) 推荐(0) 编辑
  2018年6月21日
摘要: insertAdjacentHTML 方法:在指定的地方插入html标签语句 原型:insertAdjacentHTML(swhere,stext) 参数: swhere: 指定插入html标签语句的地方, stext:要插入的内容 有四种值可用: 1. beforeBegin: 插入到标签开始前— 阅读全文
posted @ 2018-06-21 23:34 想养猫的通信狗 阅读(223) 评论(0) 推荐(0) 编辑
摘要: oninput事件:用户输入时触发 类似onchange事件 不同之处是oninput在值发生改变时立即触发onchange:在域失去焦点时才触发 oninvalid:验证不通过事件 阅读全文
posted @ 2018-06-21 20:33 想养猫的通信狗 阅读(723) 评论(0) 推荐(0) 编辑
  2018年6月20日
摘要: Document 邮箱 手机 密码 阅读全文
posted @ 2018-06-20 22:56 想养猫的通信狗 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-06-20 22:56 想养猫的通信狗 阅读(255) 评论(0) 推荐(0) 编辑
摘要: Document 名称 邮箱 手机 网站 阅读全文
posted @ 2018-06-20 21:43 想养猫的通信狗 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 1.当form表单中有input type为file时,form要添加enctype="multipart/form-data" 例子: <form action="" method="post" enctype="multipart/form-data"> <input type="file" > 阅读全文
posted @ 2018-06-20 17:24 想养猫的通信狗 阅读(112) 评论(0) 推荐(0) 编辑