virtualkeyboardpolicy
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
virtualkeyboardpolicy
全局属性 是枚举属性。当在元素上指定该元素的内容可编辑时(例如,它是 <input>
或 <textarea>
元素,或者设置了 contenteditable
属性的元素),它控制平板电脑、手机等设备上的屏幕虚拟键盘行为 ,或其他可能没有硬件键盘的设备。
¥The virtualkeyboardpolicy
global attribute is an enumerated attribute. When specified on an element that the element's content is editable (for example, it is an <input>
or <textarea>
element, or an element with the contenteditable
attribute set), it controls the on-screen virtual keyboard behavior on devices such as tablets, mobile phones, or other devices where a hardware keyboard may not be available.
该属性必须采用以下值之一:
¥The attribute must take one of the following values:
auto
或空字符串,当元素获得焦点或点击时自动显示虚拟键盘。manual
,它将焦点和点击元素与虚拟键盘的状态分离。
规范
Specification |
---|
VirtualKeyboard API # dom-elementcontenteditable-virtualkeyboardpolicy |
浏览器兼容性
BCD tables only load in the browser