我正在努力做到这一点,如果浏览器是 Internet Explorer,我想显示一个 iframe,但它不起作用,如果我使用 IE,它不会显示,我不知道为什么。
下面是我的代码:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Fastlane Autosales</title>
<link href="http://fonts.googleapis.com/css?family=Oswald:400,300" rel="stylesheet" type="text/css" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<style>
body {width:100%; height:100%; overflow:hidden, margin:0}
html {width:100%; height:100%; overflow:hidden}
#size { width: 900px;
height: 700px;
display: block;}
</style>
<body>
<!--[if IE]>
<div style="position: absolute; top: 110px; left: 20px;">
<iframe id = "size" frameborder="0" scrolling="yes" marginheight="0" marginwidth="0" style="background-color:#E6E6E6" src="http://listings2011.boostmotorgroup.com/Search.aspx? DealershipID=4075&isLogo=0&MediaID=36"></iframe>
</div>
<![endif]-->
</body>
</html>