jquery-8 jquery如何处理css样式
jquery-8 jquery如何处理css样式 一、总结 一句话总结: 1、如何获取网页的三个高? 1)可视区域的高 $(window).height(); 2)文档总高度 $(document).height(); 3)滚动的高 $(window).scrollTop(); 2、标签的三种类型的宽高是哪三种? height(); width(); innerHeight(); innerWidth(); outerHeight(); outerWidth(); 3、position()和offset()的区别是什么? position是相对父亲的位置 offset是相对窗口左上角的位置 二、jquery如何处理css样式 1、相关知识 CSS处理: 1.CSS样式 css(); css({}); 2.位置 offset(); position(); scrollTop(val); 3.尺寸 height(); width(); innerHeight(); innerWidth(); outerHeight(); outerWidth(); 4.获取三个高 1)可视区域的高 $(window).height(); 2)文档总高度 $(document).height(); 3)滚动的高 $(window).scrollTop(); 2、代码 position定位 1 <