是否可以格式化HTML工具提示(标题属性)? [英] Is it possible to format an HTML tooltip (title attribute)?

查看:102
本文介绍了是否可以格式化HTML工具提示(标题属性)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以格式化HTML工具提示?



例如,我有一个属性title =foo!的DIV。当我的浏览器的文本大小放大或缩小时,工具提示的文本大小保持不变。有没有办法使浏览器设置的工具提示字体缩放?

解决方案

没有。但还有其他选项,例如 Overlib jQuery 让你自由自在。 ://www.codylindley.com/blogstuff/js/jtip/rel =noreferrer> http://www.codylindley.com/blogstuff/js/jtip/

  • jQuery工具提示: https://jqueryui.com/tooltip/



  • 就个人而言,我会建议jQuery作为要采取的路线。它通常非常不显眼,并且不需要在站点标记中进行额外设置(除了在< head>中添加jquery脚本标记)。


    Is it possible to format an HTML tooltip?

    E.g. I have a DIV with attribute title="foo!". When I have text-size of my browser zoomed in or out in, the text size of the tooltip remains unchanged. Is there a way to make the tooltip font scale with the browser setting?

    解决方案

    No. But there are other options out there like Overlib, and jQuery that allow you this freedom.

    Personally, I would suggest jQuery as the route to take. It's typically very unobtrusive, and requires no additional setup in the markup of your site (with the exception of adding the jquery script tag in your <head>).

    这篇关于是否可以格式化HTML工具提示(标题属性)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆