簡単な説明があります - とても簡単に見えます...
ここに私の現在のツールチップがあります:
<div class="tooltip" style="position: absolute; top: 1298px; left: 382.5px; display: none; ">this is where the tooltiip text goes. You are quite the cool!</div>
インラインCSSがあるという事実を無視してください(申し訳ありません)...
わかりましたので、HTML の前に 1.5、後に 1.5 の 3 つのスパンを挿入する必要があるため、最終的には次のようになります。
<div class="tooltip" style="position: absolute; top: 1298px; left: 382.5px; display: none; "><span class="tooltop"></span><span class="toolmid">this is where the tooltiip text goes. You are quite the cool!</span><span class="toolbot"></span></div>
もちろん、これを行う最善の方法はわかりません...
基本的には次のようになります。
(既存の div) (開始スパン /) (中間スパン) [既存の innerHTML] (/ 中間スパン) (終了スパン /) (/既存の div)
わかりません。