摘要: <meter>状态标签(实时显示:气压,气温) <meter value="220" min="20" max="380" low="200" high="240" optimum="220"></meter><meter value="0.75">75%</meter> <progress> 状态 阅读全文
posted @ 2018-10-18 15:36 键1234 阅读(244) 评论(0) 推荐(0) 编辑
摘要: <article> 标记定义一篇文章 <header>标记定义一个页面或一个区域的头部 <nav>标记定义导航链接 <section>标记定义一个区域 每一个部分的意思 <section> <div></div> </section> <aside>标记定义页面的内容侧边栏 类似淘宝左边的栏目 <h 阅读全文
posted @ 2018-10-18 14:45 键1234 阅读(1148) 评论(0) 推荐(0) 编辑
摘要: 1、链式语法 $('#div') .find('p.chlid') 破坏结构 .remove('hello') .addClass('hello') .css('hello') .end() 还原破坏之前 DOM2事件模型 2、addEventListener('click',function(){ 阅读全文
posted @ 2018-10-08 10:52 键1234 阅读(83) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-09-25 10:35 键1234 阅读(17) 评论(0) 推荐(0) 编辑
摘要: DOM查找方法: document.getElementById() document.getElementsByTagName() DOM设置样式 ele.style.styleName=styleValue DOM innerHTML 获取文本标签内的内容 <ul id="listWeb"><l 阅读全文
posted @ 2018-09-22 10:23 键1234 阅读(120) 评论(0) 推荐(0) 编辑
摘要: onfocus获得焦点 onblur失去焦点 例子: .red{ border:1px solid red; } span{display:none;} 姓名:<input type="text" id="inp" class="no"> <span id="tip">请输入您的姓名</span> 阅读全文
posted @ 2018-09-21 16:30 键1234 阅读(233) 评论(0) 推荐(0) 编辑
摘要: onload onclick onmouseover onmouseout onfoucs onblur onchange 阅读全文
posted @ 2018-09-21 16:00 键1234 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 语法 获取自定义标签的属性 ele.getAttribute("attrbute"); var p = document.getElementById("text"); console.log(p.getAttribute("class")) 添加属性 p.setAttribute(“data-co 阅读全文
posted @ 2018-09-21 10:54 键1234 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 获取文本标签内的内容 <ul id="listWeb"> <li>JavaScript基础</li> <li>CSS基础</li> <li>HTML基础</li> </ul> var lis = document.getElementById("listWeb").getElementsByTagN 阅读全文
posted @ 2018-09-21 10:09 键1234 阅读(184) 评论(0) 推荐(0) 编辑
摘要: var d = new Date(); console.log(d) //当前时间 1、getFullYear() 返回4位数的年份 2.getMonth 返回日期中的月份 返回值为0-11 3、getDate() 返回月份中的天数 4.getDay()返回星期0-6 5、getHours 返回小时 阅读全文
posted @ 2018-09-20 21:34 键1234 阅读(286) 评论(0) 推荐(0) 编辑