字体图标input框

2022-03-08  本文已影响0人  似朝朝我心
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_3231228_oqwujx8bsob.css">
    <style>
        .container {
            display: flex;
            background-color: #C0C0C0;
            height: 50px;
            align-items: center;
            justify-content: space-around;
        }

        .box {
            background-color: #FFFFFF;
            width: 300px;
            height: 40px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            
        }

        input {
            height:38px;
            width: 220px;
            
            outline: none;
            border: none;
            border-right: 1px solid #eee;
        }
        button {
            border: none;
            height:40px;
            width:80px;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="box">
            <input type="text" placeholder="搜索好友姓名" value="" />
            <button class="iconfont icon-Magnifier" type="button" >搜索</button>
        </div>
    </div>
</body>

</html>
上一篇 下一篇

猜你喜欢

热点阅读