首页 > Web开发 > 详细

html中input标签放入小图标

时间:2020-05-15 19:22:03      阅读:443      评论:0      收藏:0      [点我收藏+]

直接上代码

<style type="text/css">
    *{
        margin: 0;
        padding: 0;
    }
    .box{
        width: 200px;
        position: relative;
    }
    .box .icon-search{
        width: 20px;
        height: 20px;
        position: absolute;
        top: 6px;
        right: 0;
    }
    .box .username{
        padding-left: 30px;
        height: 25px;
    }
</style>
</head>
<body>
<div class="box">
   
    <input type="text" class="username" />
    <i class="icon-search">图</i>
</div>
</body>


html中input标签放入小图标

原文:https://www.cnblogs.com/jxl123456/p/12896316.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!