jxl123456

html中input标签放入小图标

直接上代码

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


分类:

技术点:

相关文章:

  • 2021-12-27
  • 2021-07-26
  • 2021-12-27
  • 2022-01-16
  • 2022-02-11
  • 2021-12-29
  • 2021-12-12
猜你喜欢
  • 2021-12-27
  • 2021-06-29
  • 2021-12-27
  • 2021-12-27
  • 2021-08-28
  • 2021-12-27
  • 2022-12-23
相关资源
相似解决方案