摘要:
//练习:封装一个函数,兼容所有浏览器,通过类名取得标签。 //xxx.getElementsByClassName() IE8及以前的浏览器不兼容,定义一个函数,来实现这个功能 第一种 == 类名里面 只有一个 结构: <div class="red"></div> <div></div> <di 阅读全文
摘要:
<!DOCTYPE html><html> <head> <title></title> <style> .box{width: 1000px;height: 600px;border:1px solid #ccc;margin:50px auto;} .small{float: left;widt 阅读全文