admin管理员组

文章数量:1610849


处理办理:在后面pistion:fixed后面,紧接着加一个空的设有高度的div

		<div class="ziye_toub">  //这个div position:fixed已经脱离文档流
			<div class="left"></div>
			<p>商标库</p>
		</div>
		<div style="height: .75rem;"></div>  //处理办法重点
		<div class="zlk_banner">
			<img src="images/zc_banner_02.jpg"/>
			<div class="sous_ni">
				<input type="text" placeholder="输入公司名称" />
				<button>站内检索</button>
			</div>
		</div>

CSS

.ziye_toub{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: .75rem;
	text-align: center;
	line-height: .75rem;
}

.ziye_toub .left{
	background: url(../images/back_jt.png) no-repeat center;
	background-size: .2rem;
	position: absolute;
	top: 0;
	left: 0;
	width: .75rem;
	height: .75rem;
}

.ziye_toub p{
	color: #333333;
	font-size: .28rem;
}


处理二:给紧接后面的div设置一个margin-top:.75rem

.zlk_banner{
	margin-top: .75rem;
}

还有更好的办法,请大家在评论区留下大牛,您的方法,谢谢亲们!

本文标签: 元素PositionfixedDiv