jquery 自适应屏幕大小
2016-12-05 09:46
176 查看
$(document).ready(function(){ //初始化宽度、高度 $(".content-out-huo").width($(window).width()); $(".content-out-huo").height($(window).height()); //当文档窗口发生改变时 触发 $(window).resize(function(){ $(".content-out-huo").width($(window).width()); $(".content-out-huo").height($(window).height()); }) })
以上的script 代码,在网页中的表现是在标签中+ style=“ 宽和高”
相关文章推荐
- JQuery图片大小自适应
- jquery BS,dialog控件自适应大小
- android自适应屏幕方向和大小
- Android自适应屏幕大小和layout布局(横屏|竖屏)
- Android自适应屏幕大小和layout布局
- Jquery DIV+javascript自适应大小窗口
- android自适应屏幕方向和大小
- Android自适应屏幕大小和layout布局
- Android自适应屏幕方向、大小和分辨率
- jQuery 插件:随窗口大小变化的自适应高度元素
- jquery BS,dialog控件自适应大小
- android自适应屏幕方向和大小
- Android: android自适应屏幕方向和大小
- Android自适应屏幕方向、大小和分辨率
- Silverlight 自适应屏幕大小
- 使用JQuery控制iframe自适应窗口大小
- android自适应屏幕方向/大小/分辨率
- android自适应屏幕方向和大小
- [android UI]应用程序自适应屏幕大小
- Android开发屏幕大小自适应