minor fixes
This commit is contained in:
parent
2af74029e2
commit
ce8e68f21c
5 changed files with 15 additions and 12 deletions
|
@ -22,8 +22,10 @@ In this task we assume that all elements with `data-tooltip` have only text insi
|
|||
|
||||
Details:
|
||||
|
||||
- The distance between the element and the tooltip should be `5px`.
|
||||
- The tooltip should be centered relative to the element, if possible.
|
||||
- The tooltip should not cross window edges. Normally it should be above the element, but if the element is at the page top and there's no space for the tooltip, then below it.
|
||||
- The tooltip is given in the `data-tooltip` attribute. It can be arbitrary HTML.
|
||||
- The tooltip content is given in the `data-tooltip` attribute. It can be arbitrary HTML.
|
||||
|
||||
You'll need two events here:
|
||||
- `mouseover` triggers when a pointer comes over an element.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue