ul li排版 左右对齐
2016-10-11 09:04
274 查看
定义两个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 id="navtop"> <ul class="navtop-skin"> <li> <font color="#2c3e50"><strong>| Server Info.|</strong></font> <input type="text" placeholder="Search" name="selectitem" id="selectitem" title="Input IP;Name;Usage;Manager" oninput="javascript:goto(${usersession.hasPrivilegeByName("Server Info.")})" style="color:#95a5a6; padding-left:5px;border-radius:5px; width:160px; height:30px; vertical-align:middle;"> </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>
相关文章推荐
- 文本左右对齐排版--shell
- 个人信息排版左右对齐的TextView
- 文本左右对齐排版的批处理
- ul li宽度超出div宽度点击左右箭头移动
- python基础===对字符串进行左右中对齐
- 在css嵌套中的html的table里的字左右不对齐
- 使用linearlayout时控件左右对齐的问题
- 让文字左右对齐
- Android 自定义TextView 实现文字对齐排版且支持点击划词
- EBS OAF开发DataBoundValues的使用示例-动态显示表列的左右对齐
- myeclipse中自动排版对齐!
- DBText除了左右左对齐且上下Base对齐的其对齐点为Position外,其余的都是AlignmentPoint
- ueditor图片无法左右对齐的解决
- eclipse怎样对java代码自动排版,快速格式化,快速使代码对齐?
- 10-2段落排版--缩进、行间距、文字间距、字母间距、对齐
- ueditor图片无法左右对齐的解决
- 姓名,手机号怎么左右对齐text-align
- div左右排版
- c++中输出十进制,十六进制,八进制。默认输出十进制的数据和左右对齐
- DIV+CSS布局问题:一个宽度不确定的DIV里面放三个水平对齐的DIV,左右两个DIV宽度固定为150px,中间那个DIV充满剩余的宽度