English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Die globale Eigenschaft contenteditable ist eine Enum-Eigenschaft, die angibt, ob ein Element vom Benutzer editiert werden kann. Wenn ja, ändert der Browser die Komponenten des Elements, um die Bearbeitung zu ermöglichen.
Ein editierbarer Abschnitt:
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>HTML contenteditable Eigenschaft verwenden (Grundlagen-Tutorial-Web3codebox.com)<//title> </head> <body> <p contenteditable="true">I am an editable text.</p> </body> </html>Test see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the contenteditable attribute
The contenteditable attribute specifies whether the element content is editable.
Note: If the contenteditable attribute is not set on an element, it will inherit it from its parent element.
The contenteditable attribute is a new addition to HTML.
<element contenteditable="true|false">
Value | Description |
---|---|
true | The specified element is editable |
false | The specified element is not editable |