热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

对firebug和jQuery有点帮助!-AlittlehelpwithfirebugandjQuery!

IhaveadivelementthatwhenIclickonitonIE,itshowsmeacluetip.But,whenIclickinFir

I have a div element that when I click on it on IE, it shows me a clue tip. But, when I click in Firefox (or Chrome), this tip doesn't shów at all.

我有一个div元素,当我在IE上点击它时,它显示了一个线索提示。但是,当我点击Firefox(或Chrome)时,这个提示根本就没有了。

I have firebug installed but I dont't have good experience on using it.

我安装了firebug,但我没有使用它的良好经验。

With firebug, can I know why this tip isn't showing?? How can I do that?

使用firebug,我能知道为什么这个提示没有显示?我怎样才能做到这一点?

Thanks!!

3 个解决方案

#1


Click on the Firebug icon at the bottom right of your browser window. A window pane should come up at the bottom of the screen with something like this:

单击浏览器窗口右下角的Firebug图标。窗口底部应该出现一个窗格,如下所示:

Console panel is disabled

Use this page to enable or disable following panels. Enabling these panels will reduce performance and will cause a page reload.
    Console     Support for Console logging.          Disabled Always
    Script      Support for Javascript debugging.     Disabled Always
    Net         Support for Network monitoring.       Disabled Always

Check all 3 boxes and click "Apply for http://www.example.org"

选中所有3个框,然后点击“申请http://www.example.org”

Check whatever errors come up when you click on the DIV.

检查点击DIV时出现的任何错误。

#2


Check the Javascript error console after clicking on the div in firefox.

单击firefox中的div后检查Javascript错误控制台。

Tools > Error console

工具>错误控制台

This should give you the line of code causing your error and a description of the error.

这应该为您提供导致错误的代码行和错误描述。

#3


Assuming your code looks like

. The alt attribute is to be used when something can't be displayed. "For user agents that cannot display images, forms, or applets, this attribute specifies alternate text." W3C HTML 4.01

假设您的代码看起来像

。当无法显示某些内容时,将使用alt属性。 “对于无法显示图像,表单或小程序的用户代理,此属性指定备用文本。” W3C HTML 4.01

Use the title attribute to get your desired result on IE/Firefox/Chrome

. "Values of the title attribute may be rendered by user agents in a variety of ways. For instance, visual browsers frequently display the title as a "tool tip"..." WC3 HTML 4.01

使用title属性在IE / Firefox / Chrome

上获得所需的结果。 “title属性的值可以由用户代理以各种方式呈现。例如,可视浏览器经常将标题显示为”工具提示“......”WC3 HTML 4.01

For even more info read http://www.456bereastreet.com/archive/200412/the_alt_and_title_attributes/

欲了解更多信息,请阅读http://www.456bereastreet.com/archive/200412/the_alt_and_title_attributes/


推荐阅读
author-avatar
王瑾瑜2702935333
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有