定义两个ul的class, 一个向左浮动, 一个向右浮动

#navtop{
      width:100%;
      height:46px;
      background-color:#ecf0f1;
      text-align:center;
     overflow:hidden;
}

.navtop-skin li { float:left; margin:0px; padding:0 20px; /*position:relative; right:20%;*/ margin-left:20px; line-height:40px; border:solid 0px #000; } .navtop-right{ float:right; position:relative; right:9%; }

 

网页元素

<div >
	<ul class="navtop-skin">
		<li>						 
			<font color="#2c3e50"><strong>| Server Info.|</strong></font>      
			<input type="text" placeholder="Search" name="selectitem" >
		</li> 
	</ul>
	 <ul class="navtop-right">
		 <li >						
		  <a href="/portal/server/importExec" title="Data Download">
			<img src="${pageContext.request.contextPath}/style/images/excel6.jpg"   width=20px height=20px style="padding-top:15px"/>
		  </a>
		 </li> 
	 </ul>
</div>

 

相关文章:

  • 2021-05-23
  • 2022-01-27
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2021-11-21
  • 2022-02-02
猜你喜欢
  • 2022-01-03
  • 2022-12-23
  • 2021-09-09
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案