美文网首页
字体图标input框

字体图标input框

作者: 似朝朝我心 | 来源:发表于2022-03-08 22:40 被阅读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>

相关文章

网友评论

      本文标题:字体图标input框

      本文链接:https://www.haomeiwen.com/subject/ihyzrrtx.html