Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Can I change the location of alt text to that it is not direclty under the mouse pointer?

  • 4 답장
  • 1 이 문제를 만남
  • 13 보기
  • 최종 답변자: hydrohead

more options

I read a few comics that have punchlines and other messages in the alt text or hover text. Firefox puts the alt text directly underneath the mouse pointer making the first word or two hard to read. If I move the pointer more than just the most tiny bit, the alt text goes away. The attached image shows what I mean by alt text or hover text. Unfortunately, it does not show the mouse pointer.

Is there a way to get the alt text to show up next to the mouse pointer instead of directly underneath it?

I read a few comics that have punchlines and other messages in the alt text or hover text. Firefox puts the alt text directly underneath the mouse pointer making the first word or two hard to read. If I move the pointer more than just the most tiny bit, the alt text goes away. The attached image shows what I mean by alt text or hover text. Unfortunately, it does not show the mouse pointer. Is there a way to get the alt text to show up next to the mouse pointer instead of directly underneath it?
첨부된 스크린샷

모든 댓글 (4)

more options

Hi, sorry that is not possible to do do.

more options

To be a bit pedantic, the tooltip shows the content of the title attribute; Firefox stubbornly refuses to show the content of the alt attribute in a tooltip, unlike other browsers.

<img src="//imgs.xkcd.com/comics/lightning_distance.png" title="The index of radio refraction does have a lot of variation, which might throw off your calculations, so you can also look at the difference in brightness between the visible flash and more-attenuated UV and x-rays." alt="Lightning Distance" srcset="//imgs.xkcd.com/comics/lightning_distance_2x.png 2x">

But I digress.

There's no built-in feature to move tooltips, and usually it's desirable to have it near the mouse pointer, so probably you would need some special handling for the sites where this is a problem.

It's possible, using CSS, to generate a display of attribute content adjacent to an element in a page -- you may have noticed URLs after links in printouts, as an example -- but it doesn't work for inline images, so some kind of scripting probably is needed. For example, removing the title attribute from the image and popping it into a "spoiler" element below or to the right of the image that you can read by hovering it.

I wonder if anyone has posted a solution for it out on the web somewhere?

글쓴이 jscher2000 - Support Volunteer 수정일시

more options

If I move the mouse in from the right side or the bottom then the tooltip stays outside of the comic for me if that is what you want to achieve.

more options

jscher2000 - HaHa, I don't understand what you said.

cor-el- I don't care about the relationship of the hover text to the image, just relationship of the hover text to the mouse pointer. The pointer is covering up the text. Now, I do want to know how you got white text on a black background for your hover text?