前台设计细节方案.docxVIP

  • 6
  • 0
  • 约2.26万字
  • 约 33页
  • 2017-01-02 发布于湖北
  • 举报
关于手型光标(css—cursor:hand;) 在css中定义cursor:hand;并不能稳定运行,也不是W3C标准,标准的做法cursor:pointer; 关于style、currentStyle、getComputedStyle 样式表分为以下几种:直接写在tag上的为内嵌样式、写在head元素的style标签中的为内部样式、link引入的为外部样式。 内嵌样式,可以通过Dom.style.样式名称获取,需要注意的时样式名称是驼峰格式 内部样式和外部样式通过style.样式名称是无法获取的,需要通过currentStyle/getComputedStyle来获取,如果硬是使用style的话,你将只能得到一个空值。 如果获取样式时,返回的值是“auto”怎么办? 使用offset+样式名称(首字母大写) 样式表的offset、client、scroll和currentStyle属性 offsetHeight = borderTopWidth + clientHeight + scrollbarWidth + borderBottomWidth; offsetWidth = borderLeftWidth + clientWidth + scrollbarWidth + borderRightWidth; 元素内部实际可用区域(高) = clientHeight - pa

文档评论(0)

1亿VIP精品文档

相关文档