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/