FF:锚链接不起作用.. [英] FF: anchor links not working..

查看:60
本文介绍了FF:锚链接不起作用..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



< a href ="#1">


< a name ="#1">


此链接无法在FF中工作(在IE中正常工作..)

会很感激想法/建议..谢谢..

弗朗西丝

解决方案
弗朗西丝写道:< A HREF = QUOT;#1">

< a name ="#1">

这个链接在FF中不起作用(在IE中工作正常..)
会很感激的想法/建议..谢谢..




IE正在修复你的错误。 Firefox不是。


它应该是< a name =" 1"> ;.


或者在任何元素上使用id相反,完全摆脱目标< a>

元素。但请注意,id值必须以

字母而非数字开头。


Steve


于星期三,2006年2月8日,弗朗西丝写道:

< A HREF = QUOT;#1">

< a name ="#1">

此链接无法使用FF


不,它的名字不是不是 #1" ;.这有两个问题,所以

Mozilla / FF正在拒绝使用它。

(在IE中正常工作..)


不,不是。它可能会做你想做的事情,但是(因为经常用IE浏览器获得b $ b)只表明它已经坏了。

会喜欢思考/建议。 。



http://www.w3.org/TR/REC-html40/types.html#type-name

ID和NAME令牌必须以信([A-Za-z])并且可能是

后跟任意数量的字母,数字([0-9]),连字符( - ),

下划线(" _"),冒号(QUOT;:"),以及周期


使用类似< A HREF(QUOT;;")。 =" #n1">


然后使用id =" n1"在当前浏览器的合适元素上。


您的< a name =" n1">适用于古代浏览器;但是如果你这样做,并且如果你使用a / b
样式,那么你应该在一个符合浏览器价值的符合b / b
的浏览器中出现一些惊喜。 (IE,< = 6,像往常一样错了。我不知道
知道7,但我不确定我是否真的会被打扰,有

看到有多少错误仍在报道中。


Alan J. Flavell写道:

< a rel =nofollowhref =http://www.w3.org/TR/REC-html40/types.html#type-nametarget =_ blank> http://www.w3.org/TR /REC-html40/types.html#type-name

ID和NAME令牌必须以字母([A-Za-z])开头,可能会跟着
通过任意数量的字母,数字([0-9]),连字符( - ),下划线(_),冒号(:)和句点( 。。




看起来很奇怪,< a>的名称属性。据我所知,元素不是

NAME令牌。


史蒂夫



<a href="#1">

<a name="#1">

this link is not working in FF (works fine in IE..)
would appreciate thoughts/suggestions.. thank you..

Frances

解决方案

Frances wrote:

<a href="#1">

<a name="#1">

this link is not working in FF (works fine in IE..)
would appreciate thoughts/suggestions.. thank you..



IE is fixing your error for you. Firefox is not.

It should be <a name="1">.

Or use an id on any element instead and get rid of the targetted <a>
element altogether. But be aware that id values must start with a
letter not a digit.

Steve


On Wed, 8 Feb 2006, Frances wrote:


<a href="#1">

<a name="#1">

this link is not working in FF
No, its name isn''t "#1". There''s two things wrong with that, so
Mozilla/FF are working correctly in refusing to use it.
(works fine in IE..)
No it doesn''t. It might do what you wanted it to do, but (as so often
with IE) that only demonstrates that it''s broken.
would appreciate thoughts/suggestions..



http://www.w3.org/TR/REC-html40/types.html#type-name

ID and NAME tokens must begin with a letter ([A-Za-z]) and may be
followed by any number of letters, digits ([0-9]), hyphens ("-"),
underscores ("_"), colons (":"), and periods (".").

Use something like <a href="#n1">

Then use id="n1" on a suitable element for current browsers.

Your <a name="n1"> is for ancient browsers; but if you do that, and if
you use a style for a:hover , you''re due for some surprises in a
conforming browser. (IE, <=6, as usual gets this wrong. I don''t
know about 7 yet, and I''m not sure I can really be bothered, having
seen how many bugs are still being reported with it).


Alan J. Flavell wrote:

http://www.w3.org/TR/REC-html40/types.html#type-name

ID and NAME tokens must begin with a letter ([A-Za-z]) and may be
followed by any number of letters, digits ([0-9]), hyphens ("-"),
underscores ("_"), colons (":"), and periods (".").



Strange as it may seem, the name attribute of the <a> element is not a
NAME token as far as I can tell.

Steve


这篇关于FF:锚链接不起作用..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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