摘要: 1 如何设置 在style里添加overflow:auto/scroll;height;weight 如果是水平的overflow-x 2 scrollTop与scrollHeight 来实现列表循环 scrollTop scrollHeight 阅读全文
posted @ 2018-04-07 18:24 后小白 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 1. getComputedStyle(属性多) 获取当前元素所有最终使用的CSS属性值,返回一个只读的对象 style (属性少)可写 2.currentStyle 与getComputedStyle 作用一样,只不过浏览器适用不一样 获取css属性值 : 1.键值对 2.getProperVal 阅读全文
posted @ 2018-04-07 12:39 后小白 阅读(187) 评论(0) 推荐(0) 编辑