已采纳回答 / 慕粉3876065
var aA=document.getElementsByTagName('a');这一句得到的是所有的<a>标签,是一个数组;现在对每一个<a>标签都要有延伸的这种效果,所以要用到for循环,aA.length就是数组的长度
2016-09-08
a {transition:width 1s;}
a: hover {width:200px;}
看不懂,还是用CSS吧,超简单实现
a: hover {width:200px;}
看不懂,还是用CSS吧,超简单实现
2016-09-08
#div3 a{ display: block; height: 25px;line-height: 25px;width: 75px; text-align: center; background-color: #ccc; margin-right: 1px; text-decoration: none; border-radius: 9px 9px 0 0; } 这是用border-radius 写的 圆角菜单
2016-09-07