• 搜索框


    <!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>

  • 相关阅读:
    firefox、chrome的DNS缓存清除方法
    MySQL中查询所有数据库占用磁盘空间大小和单个库中所有表的大小的sql语句
    PHP获取当前页面的网址
    JAVA接单10大平台
    线程
    创建一个简单的迭代器
    2016-09-20
    C# 静态构造函数
    ASP.NET MVC 右键点击添加没有区域(Area)、控制器、试图等选项
    Git的使用--如何将本地项目上传到Github(两种简单、方便的方法)
  • 原文地址:https://www.cnblogs.com/weixin2623670713/p/13259827.html
Copyright © 2020-2023  润新知