摘要:
CSS对应的JavaScript样式属性:background—color/style.backgroundColor,color/style.color,font/style.font,font-family/style.fontFamily,font-weight/style.fontWeigh 阅读全文
摘要:
bom是浏览器对象模型,可以对浏览器窗口进行访问和操作。bom的作用:1、操作浏览器窗口。 2、提供导航对象。 3、提供定位对象。 4、提供跟屏幕相关对象。 5、提供对cookie的支持。 document.body.offsetWidth获得内容区的宽度,document.body.offsetH 阅读全文