如何使文本输入字段突出显示

时间:2015-10-20 20:56:48

标签: javascript jquery css select highlighting

出于某种原因,我必须使用箭头键来浏览此框中包含的文本;即我无法用鼠标在文本中间单击以开始键入,我无法突出显示要删除的文本。老实说,我认为这是所有文本输入的标准,所以我认为我的CSS可能会否定一些东西。任何帮助表示赞赏:

<input type='text' id='password' value='<?php echo $password; ?>' class='user_input' style='display: table-cell; float:left; width=100%'><br /><br />

.user_input{
    background-color: #444;
    color:#bbbbbb;
    border: none;
    padding:3px;
    margin: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    min-width: 200px;
}

0 个答案:

没有答案
相关问题