CSS 实现输入框点击自动选中所有内容(input+textarea)

一、input

实现代码:

<input onfocus="this.select()">

二、textarea

实现代码:

<textarea onfocus="this.select()">
posted @ 2020-08-21 21:20  Leophen  阅读(2045)  评论(0编辑  收藏  举报