Home > Article > Web Front-end > HTML5 attribute draggable specifies whether an element is draggable
Example
A draggable paragraph:
这是一个可拖动的段落。
Browser support
IE
Firefox
Chrome
Safari
Opera
Note: Internet Explorer 8 and earlier versions do not support the draggable attribute.
Definition and usageThe draggable attribute specifies whether the element can be dragged. Tip: Links and images are draggable by default. Tip: The draggable attribute is commonly used in drag-and-drop operations. Learn more in our drag and drop tutorial. Differences between HTML 4.01 and HTML5The draggable attribute is new in HTML5. SyntaxAttribute value
Description | |
Specifies that the element is draggable. | |
Specifies that the element cannot be dragged. | |
Use the browser's default behavior. |
HTML5-draggable(拖放)
The above is the detailed content of HTML5 attribute draggable specifies whether an element is draggable. For more information, please follow other related articles on the PHP Chinese website!