- 博客(2)
- 收藏
- 关注
原创 CSS:box-sizing的使用
box-sizing属性为三个值:content-box,border-box,inherit 值的功能: content-box:width不包含border和padding border-box:width包含border和padding inherit:继承父元素的box-sizing值 无标题文档 .content-box{ box-si
2016-03-25 12:27:05 197
原创 选择爱好并在输出被选项
无标题文档 //全选 function checkall(){ var hobby = document.getElementsByTagName("input"); for(i = 0;i if(hobby[i].type == "checkbox"){ hobby[i].checked = true;} } } //清楚全部已选 function clearal
2016-03-23 16:29:50 438
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人