css防止图片过大撑破盒子 兼容 ie6、 ie7、 ie8、 ff
来源:互联网 发布:安卓版windows模拟器 编辑:程序博客网 时间:2024/05/17 09:16
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>99乐活网-企业中心-天使体验</title>
<style type="text/css">
img,a img{
border:0;
margin:0;
padding:0;
max-width:650px;
width: expresion(onload=function(){this.style.width=(this.offsetWidth > 650)?"650px":"auto"}); /* 控制图片宽度,图片大于650时,图片宽度改为650,小于时宽度原大小*/
max-height:1650px;
height: expresion(this.height > 1650 ? 1650px : 'auto';);
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>99乐活网-企业中心-天使体验</title>
<style type="text/css">
img,a img{
border:0;
margin:0;
padding:0;
max-width:650px;
width: expresion(onload=function(){this.style.width=(this.offsetWidth > 650)?"650px":"auto"}); /* 控制图片宽度,图片大于650时,图片宽度改为650,小于时宽度原大小*/
max-height:1650px;
height: expresion(this.height > 1650 ? 1650px : 'auto';);
}
</style>
<body>
<div>
<img src="图片路径" boder="0" />
</div>
<body><html>
- css防止图片过大撑破盒子 兼容 ie6、 ie7、 ie8、 ff
- CSS限制图片最大宽度(兼容IE6/IE7/IE8/FF
- div+css 兼容IE6/IE7/FF/IE8
- css IE6 IE7 IE8 FF兼容 高度
- 兼容 FF, IE6 ,IE7,IE8
- 兼容 FF, IE6 ,IE7,IE8
- [转]CSS限制图片最大宽度(兼容IE6/IE7/IE8/FF)
- 全面兼容IE6/IE7/IE8/FF的CSS HACK写法
- 全面兼容ie6,ie7,ie8,ff的CSS HACK写法
- 兼容IE6/IE7/IE8/FF的CSS写法
- CSS Hack浏览器兼容IE6+IE7+IE8+IE9+FF
- 全面兼容ie6,ie7,ie8,ff的CSS HACK写法
- CSS Hack浏览器兼容IE6+IE7+IE8+IE9+FF
- 全面兼容IE6/IE7/IE8/FF的CSS HACK写法
- 兼容IE6+IE7+IE8+IE9+FF的CSS
- 全面兼容ie6,ie7,ie8,ff的CSS HACK写法
- CSS Hack浏览器兼容IE6+IE7+IE8+IE9+FF
- DIV+CSS解决IE6,IE7,IE8,FF兼容…
- 详细介绍Spring事务管理
- linux下常用命令
- linux tar命令
- 转:Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
- 美工博客地址
- css防止图片过大撑破盒子 兼容 ie6、 ie7、 ie8、 ff
- android的一些常用手机信息获取
- android launchMode
- ORACLE函数 字符类函数
- HDU_Steps 6.1 生成树 HDU1102 HDU1162 HDU1232 HDU1233 HDU1879 HDU1301 HDU3371 HDU3367
- const 修饰的变量真的不能改吗?
- Android获取已安装应用信息(图标,名称,版本号,包)
- 火韦强烈推荐:240多个jQuery插件
- Log Parser Version 2.2.10 提示帮助