css实现背景图片自适应大小
<!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=gb2312" />
<title>css实现背景图片自适应大小</title>
</head>
<body>
<table width="200">
<tr> <td style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.google.com/images/nav_logo4.png', sizingMethod='scale'">
<p>背景图片自适应大小</p>
<p> </p>
<p> </p>
<p> </p></td> </tr> </table>
<p>图片原始大小<img src="http://www.google.com/images/nav_logo4.png" /></p>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>css实现背景图片自适应大小</title>
</head>
<body>
<table width="200">
<tr> <td style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.google.com/images/nav_logo4.png', sizingMethod='scale'">
<p>背景图片自适应大小</p>
<p> </p>
<p> </p>
<p> </p></td> </tr> </table>
<p>图片原始大小<img src="http://www.google.com/images/nav_logo4.png" /></p>
</body>
</html>
全浏览器兼容的CSS自适应背景方法:http://wyz.67ge.com/css_autosize_background_image/
posted on 2009-02-13 10:51 oldmanwang 阅读(39722) 评论(2) 编辑 收藏 举报