CSS美化的漂亮搜索框
来源:互联网 发布:做seo怎么样 编辑:程序博客网 时间:2024/06/02 07:31
效果如下图所示:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS美化的漂亮搜索框</title><meta http-equiv="content-type" content="text/html;charset=gb2312"><style type="text/css"><!--.search{padding-right:10px;padding-left:10px;padding-top:5px;padding-bottom:5px;width: 280px;background:#1A93CC;float:left;position:relative;}.search .input{padding-top:2px;height:16px;width: 180px;border: 1px solid #0086C6;font-size:14px;background:#fff url(http://www.poluoluo.com/jzxy/UploadFiles_333/201107/20110726111401700.gif) no-repeat right 0;}.label{color:#ccc;position:absolute;left:12px;top:6px;display:block;height:22px;line-height:22px;font-size:12px;}span.submit{cursor:pointer;position:absolute;left:171px;top:6px;width:20px;height:20px;text-indent:-999em;}--></style></head><body><div class="search"> <form action="" method="post" name="search" id="search"> <input name="keyword" type="text" class="input" id="keyword" value="" style="float:left;"> <label for="keyword" id="for-keyword" class="label">我要搜索</label> <span class="submit" onclick="return formSubmit('frmsearch');">搜索</span> </form></div><script type="text/javascript">var $ = function(id){return document.getElementById(id);}var formSubmit = function(id){document.forms[id].submit();return false;}var tip = function(q, for_q){q = $(q);for_q = $(for_q);q.onfocus = function(){for_q.style.display = 'none';q.style.backgroundPosition = "right -17px";}q.onblur = function(){if(!this.value) for_q.style.display = 'block';q.style.backgroundPosition = "right 0";}for_q.onclick = function(){this.style.display = 'none';q.focus();}};tip('keyword','for-keyword');</script></body></html>
- CSS美化的漂亮搜索框
- CSS美化的漂亮搜索框(二)
- 美化的漂亮搜索框
- JS+CSS美化的漂亮Select列表框
- JS+CSS美化的漂亮Select列表框
- CSS漂亮搜索框代码
- 使用CSS美化你的搜索框,让用户喜欢搜索
- 一个很漂亮的搜索框
- 搜索框美化
- JS+CSS美化的Select列表框,
- css实现一款漂亮的查询框
- css漂亮的按钮
- 漂亮的CSS Tables
- 漂亮的css文字效果
- 漂亮的css文字效果
- 带搜索框的jQuery下拉框美化插件searchableSelect
- css-表格的美化总结
- 一些漂亮的CSS样式
- CListCtrl 的自绘
- 我不应该如此的颓废
- java 读取文件内容 FileInputStream
- cryptsetup的使用
- 在Activity中启动Instrumentation来进行测试
- CSS美化的漂亮搜索框
- 第二周作业 4
- 下学期第二周实验报告
- andriod开发环境搭建2012/02/28
- Windows CE 6 音频驱动简介
- C#将SQL数据库中数据导入Excel中,并将Excel中反导入SQL数据库中
- VBS教程
- MyEclipse8.5】该版本的MyEclipse的优化
- android开发1