如下代码怎么按钮显示在搜索况的下面
时间:2011-06-15
来源:互联网
如下代码怎么按钮显示在搜索况的下面,如果把display:block; 这个改成 inline的话能在右面,但如果这样的话,搜索况的图片会变形,变成普通的四方形。 还有一个问题,就是按钮只显示一半。怎样才能解决阿?
<div id="btnList">
<ul>
<li><span id="listTotal">전체 직원수 : <b></b> 명</span></li>
</ul>
<form id="searchForm" onsubmit="return false;">
<fieldset>
<legend>검색</legend>
<label id="searchbox">
<input type="text" id="s" name="s"/>
</label>
<button class="search">검색</button>
</fieldset>
</form>
</div>
/** search form **/
div#btnList form {float:right; width:246px;}
div#btnList form fieldset label#searchbox {display:block; background:url(/images/bg-search.gif) no-repeat; height:21px; width:246px;}
div#btnList form fieldset label#searchbox input {background:none; border:none; outline:none; color:#666; font-size:0.9em;}
div#btnList form fieldset .search{clear:both;}
div#btnList form fieldset .search{display:inline-block; background:url(/images/bg-buttons-left.gif) }
div#btnList form fieldset .search{display:inline; background:url(/images/bg-buttons-right.gif) no-repeat right; padding:0 15px 0 0; line-height:21px;}
div#btnList form fieldset .search{margin:0 3px;}
<div id="btnList">
<ul>
<li><span id="listTotal">전체 직원수 : <b></b> 명</span></li>
</ul>
<form id="searchForm" onsubmit="return false;">
<fieldset>
<legend>검색</legend>
<label id="searchbox">
<input type="text" id="s" name="s"/>
</label>
<button class="search">검색</button>
</fieldset>
</form>
</div>
/** search form **/
div#btnList form {float:right; width:246px;}
div#btnList form fieldset label#searchbox {display:block; background:url(/images/bg-search.gif) no-repeat; height:21px; width:246px;}
div#btnList form fieldset label#searchbox input {background:none; border:none; outline:none; color:#666; font-size:0.9em;}
div#btnList form fieldset .search{clear:both;}
div#btnList form fieldset .search{display:inline-block; background:url(/images/bg-buttons-left.gif) }
div#btnList form fieldset .search{display:inline; background:url(/images/bg-buttons-right.gif) no-repeat right; padding:0 15px 0 0; line-height:21px;}
div#btnList form fieldset .search{margin:0 3px;}
作者: josiahliang 发布时间: 2011-06-15
help help help
作者: josiahliang 发布时间: 2011-06-15
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28