日期:2014-05-16  浏览次数:20380 次

几个属性和方法的使用
getElementById();这个后面有的需要style,有的不需要,想知道什么时候是需要加的呢?

还有就是关于CSS的

clear:这个属性默认是none,是吗?但是有时候加与不加是没区别的,想了解更多关于clear的使用,



------解决方案--------------------
引用CSS的属性就要加style了,引用对象本身的属性就不要加、
none是clear默认属性
属性值代表的意思如下:
none Default. Floating objects are allowed on both sides.
left Object is moved below any floating object on the left side.
right Object is moved below any floating object on the right side.
both Object is moved below any floating object.