嗨我想创建一个非常简单的页面,但我迷失在某个地方。 我的想法是创建这个结构的东西 http://i57.tinypic.com/4r49ia.jpg 很简单...每种颜色都是一个div.one在另一个之上。黑色矩形是唯一的硬件部分,是YouTube视频的空间。基本的HTML/CSS布局不工作
我这样做的代码,但它只是搞的一团糟
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body style="margin:0; padding:0; text-align:center; color:white;” >
<div id="container” style=“margin:0; padding:0; text-align:center;” >
<div id="header" style="background-color:green; height:110px;width:2000px;">
</div>
<div id="menu" style="background-color:blue; height:70px;width:2000px;”>
<p>text here</p>
</div>
<div id=“content” style="background-color:red; text-align:center; height:800px;width:2000px;”>
# here goes youtube video #
</div>
<div id="footer" style="background-color:yellow;height:200px;width:2000px; ">
</div>
</div>
</body>
</html>
我该怎么办错了吗?请帮帮我。
我得到绿线,然后是蓝线(但没有文字),红色区域完全是任务。那么就有黄色的div ...为什么?
你应该考虑在外部css文件中编写你的css。使阅读和组织更容易。 – ElliotSchmelliot
你有关于内容的奇怪引号。也许问题来自那里。 – franchez