简单用户名输入框

二种:

<div style=" 400px;height: 35px;position: relative;">
    <input type="text" style=" 360px;height: 35px;padding-right: 40px;"/>
    <div style=" 35px;height: 35px;position: absolute;right: 0;top: 2px;background: url(pwd-icons.png) 0 0 no-repeat;"></div>
</div>
<p />
<div style=" 400px;height: 35px;position: relative;border: 1px solid #bcbcbc;">
    <label for="loginname" style="position: absolute;top: 0;left: 0; 35px;height: 35px;background: url(pwd-icons.png) 0 0 no-repeat;border-right: 1px solid #a9a9a9;"></label>
    <input id="loginname" style=" 360px;height: 33px; border: 0;padding-left: 40px;" type="text" />
</div>

  

原文地址:https://www.cnblogs.com/alex-hrg/p/9379888.html