首页
产品
快图
小程序
微商城
网站建设
新闻
公司动态
行业资讯
关于
案例
联系
CSS 好看检索框清理编码
2021-01-20 14:59
jianzhan
实际效果图:
完成这类实际效果有两种方式:1是总体解决1个情况,以全透明gif图的方法精准定位到检索框,或分割开,这类方式载入快,并且灵便性更高。
文选用到的照片
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>CSS清理的好看检索框</title> <style type="text/css"> body{ font: normal 100% 'Arial','Helvetica','Verdana',sans-serif; color: #333; } p { padding: 12px 0; margin: 0; font-size: .8em; line-height: 1.5; } form { margin: 0; } #search_box { width: 201px; height: 31px; background: url(//img.jbzj.com/demoimg/200912/bg_search_box.gif); } #search_box #s { float: left; padding: 0; margin: 6px 0 0 6px; border: 0; width: 159px; background: none; font-size: .8em; } #search_box #go { float: right; margin: 3px 4px 0 0; } </style> </head> <body> <div id="search_box"> <form id="search_form" method="post" action="#"> <input type="text" id="s" value="Search" class="swap_value" /> <input type="image" src="//img.jbzj.com/demoimg/200912/btn_search_box.gif" width="27" height="24" id="go" alt="Search" title="Search" /> </form> </div> </body> </html>
提醒:您能够先改动一部分编码再运作
为您推荐
CSS 好看检索框清理编码
JavaScript CSS Style特性对比表
table CSS制做漂亮的网页页面报表
运用label标识和CSS清理文档提交表单(兼容
CSS仿真模拟小箭头的完成编码
所有文章
公司动态
行业资讯