HTML <dialog> 標籤
實例
使用<dialog> 元素:
<table border="1">
<tr>
<th>January <dialog open>This is an open dialog window</dialog></th>
<th>February</th>
<th>March</th>
</tr>
<tr>
<td>31</td>
<td>28</td>
<td>31</td>
</tr>
</table>
<tr>
<th>January <dialog open>This is an open dialog window</dialog></th>
<th>February</th>
<th>March</th>
</tr>
<tr>
<td>31</td>
<td>28</td>
<td>31</td>
</tr>
</table>
嘗試一下»
瀏覽器支持
目前,只有Chrome 和Safari 6 支持<dialog> 標籤。
標籤定義及使用說明
<dialog> 標籤定義一個對話框、確認框或窗口。
HTML 4.01 與HTML5之間的差異
<dialog> 標籤是HTML5 中的新標籤。
屬性
New :HTML5中的新屬性。
属性 | 值 | 描述 |
---|---|---|
open New | open | 规定 dialog 元素是有效的,用户可以与它进行交互。 |
全局屬性
<dialog>標籤支持HTML的全局屬性 。
事件屬性
<dialog>標籤支持HTML的事件屬性 。