a, .c { float: left; width: 130px; } select { width: 120px; h...
![240](https://cdn2.jianshu.io/assets/default_avatar/2-9636b13945b9ccf345bc98d0d81074eb.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
a, .c { float: left; width: 130px; } select { width: 120px; h...
*{ margin:0; padding:0; } li{ list-style: none; } a{ ...
*{ margin:0; padding:0; } li{ list-style:none; } a{...
div { float: left; height: 100px; line-height: 100px; } #d1, ...
*{margin:0;padding:0;}li{list-style: none;}a{text-decoration: none;} 1 春节 2 二月二龙抬头...
Document table {text-align: center;} 商品名称 商品单价 商品数量 商品小计 iphonex ¥7999 + 1...
/* 圆点*/.num{overflow: hidden;position: absolute;top:380px;left:270px;}.num>li{fl...
说构造函数的概念之前我们应该先了解类的概念,类与对象的概念息息相关,我们在讲对象的概念的时候说过,一只猫是一个对象,一个人是一个对象,一章桌子也是一个对象,那么我们平时说的猫...
1.绑定事件 想要给一个元素绑定事件,我们有两种方法:使用内联事件或事件监听器。在之前的课程中,我们一直使用的是内联事件来为元素绑定事件 按钮1 按钮2 var btn1...
一次性定时器:setTimeout清除一次性定时器用clearTimeout var timer=setTimeout(show,3000);btn1.onclick=fun...
function task(){var now=new Date();var end=new Date('2018/5/25 18:00');var s=(end-now)/...
*{margin:0;padding:0;box-sizing: border-box;}li{list-style: none;}a{text-decoration: no...
*{margin:0;padding:0;box-sizing: border-box;}li{list-style: none;}a{text-decoration: no...
一.访问元素的属性 A.核心Dom1.获得属性值: getAttrbuite('属性名');2.设置属性: setAttribute('属性名','值');3.移除属性: r...
3.通过选择器查找 1.queryElementSelector:通过选择器查找,可以查找id名、class名和标签名,但是只能找到一个 用法: var ele = docu...
通过html查找 1 通过id查找:只能查找一个 用法: var ele = document.getElementById("main");2 通过class查找:可以找到...