zoukankan      html  css  js  c++  java
  • 搜索框

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title></title>

    <link rel="stylesheet" href="css/style1.css" />

    <style type="text/css">
    .box{
    800px;
    margin: 0 auto;
    }
    .Tab{
    500px;
    margin-left: 20px;

    }
    .Tab span{
    /*转换位块状元素*/
    display: inline-block;
    36px;
    margin-right: 4px;
    line-height: 22px;
    text-align: center;
    color: #f40;
    cursor: pointer;

    }
    .Tab span.active{
    color: white;
    font-weight: bold;
    background-color: pink;
    /*背景渐变*/
    background-image: linear-gradient(to right,#ff9000,#ff5000);
    border-radius:6px 6px 0 0;
    }
    .Tab span:hover{
    background-color: #ffeee5;

    }
    .body{
    height: 60px;
    }
    .body .seB{
    554px;
    height: 40px;
    box-sizing: border-box;
    border: 2px solid #FF5000;
    border-right:none;
    border-radius:20px 0 0 20px;
    overflow: hidden;
    position: relative;
    }
    .body .seB input{
    490px;
    height: 36px;
    line-height: 36px;
    outline: none;
    border: none;
    /*首行缩进s*/
    text-indent: 10px;
    z-index:90;
    /*透明*/
    background-color: transparent;
    }
    .body .seB .placeholder{
    position: absolute;
    top: 6px;
    left: 14px;

    }
    .placeholder span{
    color: #9c9c9c;
    vertical-align: 1px;
    }
    .img-se{
    font-size: 28px;
    color: #9C9C9C;
    position: absolute;
    right: 20px;
    top: -2px;
    cursor: pointer;
    line-height: 28px;
    }
    button{
    outline: none;
    border: none;
    74px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    line-height: 40px;
    color: #FFFFFF;
    border-radius:0 20px 20px 0;
    background-image: linear-gradient(to right,#ff9000,#ff5000);
    position: absolute;
    right: 498px;
    top:30px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    }
    </style>

    </head>
    <body>
    <div class="box">
    <div class="Tab" >
    <span class="active">宝贝</span>
    <span>天猫</span>
    <span>店铺</span>
    </div>

    <div class="body">
    <form action="#">
    <div class="seB">
    <input type="text" />
    <div class="placeholder">
    <span class="iconfont">&#xe637;</span>
    <span>网红裤腰带</span>
    </div>
    <div class="img-se">
    <a class="iconfont">&#xe68a;</a>
    </div>
    </div>
    <button>搜索</button>
    </form>
    </div>

    </div>
    </body>
    </html>

  • 相关阅读:
    深入AXI4总线- [一]握手机制
    《数字集成电路静态时序分析基础》笔记⑩
    搭建自己的gitlab
    idea连接github问题
    itguang
    [转]springboot+idea热部署(自动刷新)
    25匹马,5条赛道,一匹马一个赛道,求决胜1,2,3名至少多少场
    [转]PostgreSQL主从流复制部署
    [转]centos7 安装jdk11 并设置默认java版本
    [转]centos7 修改yum源为阿里源
  • 原文地址:https://www.cnblogs.com/weixin2623670713/p/13259827.html
Copyright © 2011-2022 走看看