分享

百度的搜索的css样式

 木有银 2011-06-23
<!DOCTYPE html>
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=GB2312">
  <title>百度一下,你就知道</title>
  <style>
   body {
    font: 12px arial;
    text-align: center;
    background: #fff
   }
   body,form {
    margin: 0;
    padding: 0
   }
   body,form,#fm {
    position: relative
   }
   #m {
    width: 680px;
    margin: 0 auto
   }
   
   .btn {
    font-size: 14px
   }
   
   #fm {
    padding-left: 90px;
    text-align: left
   }
   
   #kw {
    width: 404px;
    height: 22px;
    padding: 4px 7px;
    padding: 6px 7px 2px\9;
    font: 16px arial;
    background: url(http://www.baidu.com/img/i2.png) no-repeat;
    _background-attachment: fixed;
    border: 1px solid #cdcdcd;
    border-color: #9a9a9a #cdcdcd #cdcdcd #9a9a9a;
    vertical-align: top
   }
   
   .btn {
    width: 95px;
    height: 32px;
    padding: 0;
    padding-top: 2px\9;
    border: 0;
    background: #ddd url(http://www.baidu.com/img/i2.png) 0 -35px;
    cursor: pointer
   }
   
   .btn_h {
    background-position: -100px -35px
   }
   
   #kw,.btn_wr {
    margin: 0 5px 0 0
   }
   
   .btn_wr {
    width: 97px;
    height: 34px;
    display: inline-block;
    background: url(http://www.baidu.com/img/i2.png) no-repeat -202px bottom;
    _padding-top: 1px; *
    position: relative
   }
  </style>
 </head>
 <body>
  <div id="m">
   <div id="fm">
    <form name="f" action="/s">
     <input autocomplete="off" name="wd" id="kw" maxlength="100"
      type="text">
     <span class="btn_wr"><input value="浏览..." id="su" class="btn"
       onmousedown="this.className='btn btn_h'"
       onmouseout="this.className='btn'" type="submit"> </span>
     <div style="display: none;" id="sd_1308808830560"></div>
    </form>
   </div>
  </div>
 </body>
</html>
<!--4d42d66ff503583b-->

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章