只是一个简单的结构。试图让我的内容包装器具有左右边框并拉伸 100% 的高度。看起来很简单,但不起作用。我错过了什么吗?
<?php get_header(); ?>
<div class="content_wrapper clearfix">
</div>
<?php get_footer(); ?>
//标题
<body <?php body_class(); ?>>
<div class="header clearfix">
<div class="header_wrapper clearfix">
<div class="logo_wrapper">
<div class="logo">
</div>
</div>
</div>
</div>
//页脚
<?php wp_footer(); ?>
</body>
</html>
//CSS
body {
width:100%;
height:100%;
line-height: 1;
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight:300;
}
.content_wrapper {
width:960px;
height:100%;
margin:0px auto 0px auto;
border-left:1px #ccc solid;
border-right:1px #ccc solid;
}
.header {
width:100%;
height:80px;
background:#FFF;
border-bottom:1px #ccc solid;
}
.header_wrapper {
width:960px;
margin:0px auto 0px auto;
height:80px;
border-left:1px #ccc solid;
border-right:1px #ccc solid;
}
.logo_wrapper {
width:187px;
height:63px;
padding-top:8px;
}
.logo {
width:187px;
height:63px;
background:url(../images/bit_ball_ai.png) no-repeat;
margin-left:20px;
}
谢谢