complete strings document, adjust structure

This commit is contained in:
2023-03-31 09:10:13 +08:00
parent 877e9e7208
commit b04917109d
12 changed files with 94 additions and 15 deletions

View File

@ -15,10 +15,10 @@
要设置的 tooltip 内容,允许为字符串或者 HTML 元素
</p>
<h2>resolveTooltip</h2>
<code>function resolveTooltip(container: HTMLElement): HTMLElement</code>
<h3>container: HTMLElement</h3>
<code>function resolveTooltip(container?: HTMLElement): HTMLElement</code>
<h3>container?: HTMLElement</h3>
<p>
给此元素下的所有含有 title 属性的子元素设置成统一样式的 tooltip
给此元素,为 null 则把 document.body 下的所有含有 title 属性的子元素设置成统一样式的 tooltip
</p>
<hr />
<h2>示例</h2>