【发布时间】:2018-10-05 23:52:50
【问题描述】:
我正在尝试创建一个使用黄金比例作为比例的模板网页。但是,看来我做得不对。
我想要一些关于正确使用的建议:
-
div用于在页面上布置面板的标签 - CSS 和位置属性
- 任何其他可以帮助我获得有吸引力的页面的标签或提示
HTML:
<html>
<head>
<title>Golden Ratio</title>
<link rel="StyleSheet" title="Default" href="gr.css" type="text/css">
</head>
<body>
<div id="header">
</div>
<div>
</div>
<div id="bodyleft">
</div>
<div id="bodyright">
</div>
<div id="footer">
</div>
</body>
</html>
CSS:
body {
background-color: white;
}
#header {
width: 960px;
height: 100px;
background-color: red;
}
#bodyleft {
position: absolute;
top: 100px;
width: 592px;
height: 700px;
background-color: blue;
}
#bodyright {
position: absolute;
top: 110px;
left: 610px;
width: 368px;
height: 700px;
background-color: green;
}
#footer {
position: absolute;
top: 800px;
width: 960px;
height: 100px;
background-color: black;
}
【问题讨论】:
-
我喜欢this article