Image icon is not displayed inside text field when auto complete is enabled in the browser

孤人 提交于 2020-01-04 14:12:10

问题


This is my code. I inserted a icon inside the text field at the left. When auto complete feature is enabled in the browser, image getting disappeared by the autocomplete. What should i do, to make the icon displayed even when the autocomplete feature is enabled inside the browser ?

 input.usernm{
                  font-size: 14px;font-weight: normal;
                  text-indent: 8px;text-transform: uppercase;height: 10px;background: url(resources/images/userimg.png) no-repeat 8px 7px;width: 183px;
              } 


<h:inputText styleClass="usernm" style="color:black;font-weight: bold" id="username" maxlength="8" required="true" requiredMessage="Please enter a username" value="#{userBean.username}"/>

来源:https://stackoverflow.com/questions/30641505/image-icon-is-not-displayed-inside-text-field-when-auto-complete-is-enabled-in-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!