问答详情
源自:2-2 html页面结构整理

打开浏览器问啥什么都没有

<!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;

}


提问者:一个喜欢迈克尔的傻小子 2017-05-31 15:42

个回答

  • 承诺只是承诺而已
    2017-06-01 11:28:51

    在css当中public-header,public-container前面要加这个点“.”