模板:Span title/doc
外觀
本文件是Template:Span title的文件子頁面 (見頁面自身)。 本頁包含用法資訊、分類和其他非原頁面的內容。 |
This template creates an HTML span
element with a title
attribute, which is rendered by many user-agents as producing a tooltip when hovered over with a cursor.
- {{span title|This is the title|This is the text}}
產生的代碼:
- <span title="This is the title">This is the text</span>
並呈現為:
- This is the text
使用模板比在頁面中使用原始HTML稍微整潔。