利用CSS按比例缩小图片
2007-07-16 22:55
316 查看
把一副大图片按比例缩小到某个尺寸,对于现代浏览器,直接使用max-width和max-height两条CSS属性即可。阅读全文...
对于IE 6.0及以下版本,以上两条CSS属性均不会被理会。之前处理这种事情,我们往往会借助Javascript,然后为图片加上onload事件。例如:
<script type="text/javascript"><!--
google_ad_client = "pub-7655768891627260";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-07-16: 酷哥广告渠道
google_ad_channel = "5559849160";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
对于IE 6.0及以下版本,以上两条CSS属性均不会被理会。之前处理这种事情,我们往往会借助Javascript,然后为图片加上onload事件。例如:
<script type="text/javascript"><!--
google_ad_client = "pub-7655768891627260";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-07-16: 酷哥广告渠道
google_ad_channel = "5559849160";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
相关文章推荐
- 利用CSS按比例缩小图片
- 利用CSS按比例缩小图片
- 利用CSS按比例缩小图片
- Web标准化制作:利用CSS按比例缩小图片
- 利用CSS按比例缩小图片
- 利用CSS同比例缩小图片技巧
- 利用CSS按比例缩小图片
- 利用PHP实现图片等比例放大和缩小
- 利用javascript设置图片等比例缩小
- Css 同比例缩小图片
- 完美的css背景图片全屏显示,能比例缩小,不留空白
- 【CSS实现图片等比例缩小不变形】
- CSS强制等比例缩小图片
- js+css图片自动等比例缩小且垂直居中[v20071208]
- js+css图片自动等比例缩小且垂直居中
- 用CSS等比例缩小图片代码
- 纯css的防止图片撑破页面的代码图片会自动按比例缩小
- css控制图片按比例缩小
- js+css图片自动等比例缩小且垂直居中[v20071208]
- CSS强制按比例缩小图片