一个喜欢迈克尔的傻小子
2017-05-31 15:42
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="zhangccc" href="css/reset.css"/>
<link rel="zhangccc" href="css/common.css"/>
<link rel="zhangccc" href="css/index.css"/>
</head>
<body>
<div class="public-header"></div>
<div class="pibilic-container"></div>
<div class="index-banner"></div>
<div class="index-list"></div>
<div class="index-panel">
<div class="index-panel-header">Featured Dishes</div>
</div>
<div class="index-panel">
<div class="index-panel-header">Featured Dishes</div>
</div>
<div class="public-footer"></div>
</body>
</html>
上面是HTML
下面是css
public-header{
height: 110px;
}
public-container{
position: relative;
margin: 0 auto;
background: #006dcc;
height: 100px;
width: 110px;
}
在css当中public-header,public-container前面要加这个点“.”
从 psd 到 html
105471 学习 · 410 问题
相似问题
回答 2
回答 2