请教关于div中放iframe的问题!如下代码中,iframe溢出了div的右侧边框,如何让iframe在div中呢?

<html>
<head>
<title>frame</title>
<style type="text/css">
#a{
border:1px solid red;
margin-left:100px;
}
#a iframe{
width:100%;
height:100%;
}
</style>
</head>
<body>
<div id="a">
<iframe>
</iframe>
</div>
</body>
</html>

第1个回答  2014-09-21
iframe不要放div中,css中把position设成absolute,然后height和width就有用了/本回答被网友采纳
第2个回答  2012-08-19
任务需要,路过!
相似回答