有没有办法让iframe的高度适合它的内容?你能告诉我怎么做吗?我试着在网上搜索并试用代码,但没有运气
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta NAME="Description" content="Communigate Technologies" />
<meta HTTP-EQUIV="Cache-Control" content="no-cache" />
<meta HTTP-EQUIV="pragma" content="no-cache" />
<title></title>
</head>
<body>
<div align="center" style="z-index:1;">
<?php include 'header.html' ?>
<iframe align=top width=800px src="aboutus1.php" frameborder=1 border=0 framespacing=0 SCROLLING=no id="bodyframeid" name="bodyframename"></iframe>
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud) 我想知道为什么这个来自jsfiddle的链接在本地运行时没有正常工作?
我复制了代码以在本地测试.
<html>
<head>
<script type="text/css">
.btn {
display: block;
width: 68px;
height: 22px;
padding-top: 70px;
font-weight: bold;
float: left;
padding-right:30px;
text-align:center;
}
.btn {
background: url("http://www.aidancotter.com/images/face.png") no-repeat -5px 0px;
}
.btn:hover {
background-position: -5px -120px;
}
.menu ul li {
list-style:none;
}
.menu {
display: inline;
float: left;
padding-right:30px;
padding:20px 0 0 20px;
}
a {
text-decoration:none;
color:#000;
}
.menu ul li ul {
display:none;
background:#78a802;
position:absolute;
width:200px;
color:#fff;
margin-top:90px;
}
.menu ul li:hover ul {
display:block; …Run Code Online (Sandbox Code Playgroud)