Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我将鼠标悬停在同人圈中的图像(图像链接)上时,我想让文本跟随鼠标指针。 像这样。来源:我的世界维基
它被称为工具提示。title="Text of tooltip"简单的解决方案是在元素上放置一个属性。这将根据浏览器/操作系统生成通用工具提示。
title="Text of tooltip"
如果您需要对设计或内容进行更多控制,请尝试使用谷歌搜索“tooltop css”或“tooltip javascript”。