我想插入一個iframe到我的佈局的DIV框但有麻煩...我試着查找它,但仍然有輕微的問題,其餘的'幫助'涉及JavaScript我真的想避免。插入一個iframe到DIV
問題是在這裏---> [http://babywitch.altervista.org/Writing/SLITD/index.html]
body{
background-color: #B5BEC6
}
#header{
width: 1000%;
height: 60px;
position: absolute;
top:0px;
left:0px;
background-color: #C7DBE6;
border-bottom-style: dashed;
border-bottom-color: #ffffff;
border-bottom-width: 1px;
}
#Nixie{
width: 300px;
height: 50px;
position: absolute;
left: 225px;
top: 15px;
font-family: 'Open Sans Condensed', sans-serif;
font-size: 26px;
color: #ffffff;
}
.nixiesbox{
width: 500px;
height: 350px;
position: absolute;
left: 35px;
top: 70px;
background-color: #ffffff;
opacity: 0.5;
}
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://babywitch.altervista.org/Writing/SLITD/stylesheet.css">
<title></title>
</head>
<body>
<div id="header"><div id="Nixie">Nixie Moon</div></div>
<div class="nixiesbox">
<div style="position:absolute; left:77; top:77; width:500; height:350; border-style: none;background:#;">
<iframe src="http://www.google.com/" width="377" height="377" marginwidth="0" marginheight="0" frameborder="no" scrolling="yes" style="border-width:2px; border-color:#333; background:#FFF; border-style:solid;">
</iframe>
</div> </div>
</body>
</html>
你堅持的重疊或有其他問題? –
「有輕微問題」 - 這些問題是什麼? – Quentin
對不起,我認爲這將是顯而易見的,我有改變大小和刪除邊界的問題,但Yann答案幫助,謝謝你們! –