Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/447.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 位置工具提示jquery_Javascript_Jquery_Html - Fatal编程技术网

Javascript 位置工具提示jquery

Javascript 位置工具提示jquery,javascript,jquery,html,Javascript,Jquery,Html,我有我的工具提示,但我在ie5中有问题: 在mozilla和chrome中,文本框下方的工具提示将正确显示: 在我的ie5中,工具提示出现在页面的左侧,完全不合适。为解决此问题,我更改了以下内容: <script> $(function () { $('input.age').tooltip({ position:'bottom bottom', relative:true, conte

我有我的工具提示,但我在ie5中有问题:

在mozilla和chrome中,文本框下方的工具提示将正确显示:

在我的ie5中,工具提示出现在页面的左侧,完全不合适。为解决此问题,我更改了以下内容:

<script>
    $(function () {
        $('input.age').tooltip({
            position:'bottom bottom',
            relative:true,
            content: function () {
                return $(this).attr('title');
            }
        });
        $('input.age').tooltip('open')
    });
</script>

$(函数(){
$('input.age')。工具提示({
位置:'底部',
亲戚:对,,
内容:功能(){
返回$(this.attr('title');
}
});
$('input.age')。工具提示('open'))
});
也就是说,我在这里添加了位置,但它要求我如下所示(工具提示位于输入上方,我希望位于下方):


对于难以成为ie5版本的用户,是否有任何方法可以修复工具提示,而不考虑版本和浏览器?

ie5。。。?我希望这是个打字错误。ie5??你应该专注于使代码在IE9+上工作——即使Microsoft不支持IE8及以下版本。即使在ie5上,你也无法再获得ie5虚拟机是的,在我的pc上看起来不错,但在客户端上却不行。我去ie和methyl程序员那里,看看哪个版本是它发生的,并且在版本5中给出了…我甚至不会像上面所说的那样担心IE5。这完全无关。