Why doesn't @contenteditable work on the iPhone?

前端 未结 6 946
无人及你
无人及你 2020-12-09 05:05

Safari HTML Reference: Supported Attributes says:

contenteditable

If true, the element can be edited on the fly; if false, it cannot.

6条回答
  •  萌比男神i
    2020-12-09 05:57

    If you cannot focus the contenteditable element try adding this to your css

    [contenteditable] {
        -webkit-user-select: text;
        user-select: text;
    }
    

提交回复
热议问题