Tooltip: position & full width (at the same time)
问题 What CSS would force a tooltip:- to be positioned just above its reference text and to take up the full width of its reference text's container ...at the same time? By default, the length between the reference text's first and last characters are considered. How to make the reference text's most left and right edges to be considered the length for the absolutely positioned child element? .tooltip { width: 100%; margin: 0 auto; /* left: 0; */ /* right: 0; */ position: absolute; top: 0;