模板: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稍微整洁。
参考
编辑- {{SetTitle}}