点击input标签,让它的内容被选中, 使用 onfocus="this.select();" 例: <input type="text" style="width: 150px;" class="input-sr" name="realName" id="realName" onfocus="this.select();"*/>