后退按钮会干扰导航

编程入门 行业动态 更新时间:2024-10-25 14:27:52
本文介绍了后退按钮会干扰导航 - 如何避免这种情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的带有免费教科书的网页有一个简单的html导航。 将光标移动到菜单项上使 显示菜单项为红色,使用onmouseover。 /> 如果我点击该菜单项,我会进入新页面。 一切正常。但是,如果我再用后退按钮(Mac Safari和IE - 还没有 checke在PC上)回到 我会回到以前的 页面,但选择下一个已经/仍然突出显示。 (在这种情况下有两个红条。)丑陋。 所有编程都在html页面和一个css文件中; 没有隐藏任何内容。 (参见 www.motionmountain ) 出了什么问题?如何避免这种情况? 任何提示都表示赞赏。 问候 Christoph Schiller

解决方案

2005年4月9日14:36:28 -0700,< ch ********** *@yahoo>写道:

我的带有免费教科书的网页有一个简单的html导航。在菜单项上移动光标使菜单项显示为红色,使用onmouseover 。 如果我点击该菜单项,我会进入新页面。一切正常。但是,如果我然后用后退按钮(Mac Safari和IE - 还没有在PC上运行)回到,我会回到之前的页面,但是可以选择下一个已经/仍然突出显示。(在这种情况下有两个红色条。)丑陋。 所有编程都在html页面和一个css文件中; 没有什么是隐。 (参见 www.motionmountain )出了什么问题?如何才能避免这种情况?

我没有去看,但这对我来说听起来不错。 元素a可能仍然具有焦点。如果你设定一个:焦点(或者可能是 a:活跃,如果事实证明它仍然是活跃的),背景颜色为 选择,你所谓的问题可能就会消失。 - , - - < - @ - PretLetters:''woest wyf'',遇见vele interesses:------ ----。 |博客| home.wanadoo.nl/b。 de.zoete / _private / weblog.html | | webontwerp | home.wanadoo.nl/b。 de.zoete / html / webontwerp.html | | zweefvliegen | home.wanadoo.nl/b。 de.zoete / html / vliegen.html | ` --------------------------- ----------------------- - < - @ ------------''

什么是焦点?我从未在样式表中使用过该术语。

2005年4月9日15:11:22 -0700,< ch ****** *****@yahoo>写道: [请学习正确引用。引用你回复的位,将其归结为 然后在引号下面回复。

什么是焦点?我从未在样式表中使用过该术语。

< www.w3/TR/CSS2/selector.html#dynamic-pseudo-课程> - , - - < - @ - PretLetters:''woest wyf'',遇见了vele interesses: - ---------。 |博客| home.wanadoo.nl/b。 de.zoete / _private / weblog.html | | webontwerp | home.wanadoo.nl/b。 de.zoete / html / webontwerp.html | | zweefvliegen | home.wanadoo.nl/b。 de.zoete / html / vliegen.html | ` --------------------------- ----------------------- - < - @ ------------''

My webpage with a free textbook has a simple html navigation. Moving the cursor on the menu item makes appear the menu item red, using onmouseover. If I click that menu item, I get to the new page. Everything works fine. But if I then bo back with the back button (Mac Safari and IE - have not checke on PC yet) I do get back to the previous page, but with the choice of the next already/still highlighted. (There are two red bars in this case.) Ugly. All the programming is in html pages and in one css file; nothing is hidden. (See www.motionmountain ) What is going wrong? How can one avoid this? Any hint is appreciated. Regards Christoph Schiller

解决方案

On 9 Apr 2005 14:36:28 -0700, <ch***********@yahoo> wrote:

My webpage with a free textbook has a simple html navigation. Moving the cursor on the menu item makes appear the menu item red, using onmouseover. If I click that menu item, I get to the new page. Everything works fine. But if I then bo back with the back button (Mac Safari and IE - have not checke on PC yet) I do get back to the previous page, but with the choice of the next already/still highlighted. (There are two red bars in this case.) Ugly. All the programming is in html pages and in one css file; nothing is hidden. (See www.motionmountain ) What is going wrong? How can one avoid this?

I didn''t go look, but it doesn''t sound like anything going wrong to me. The element a probably still has focus. If you style a:focus (or maybe a:active if it turns out to be active still) with the background color of choice, your so called problem might just disappear. -- ,-- --<--@ -- PretLetters: ''woest wyf'', met vele interesses: ----------. | weblog | home.wanadoo.nl/b.de.zoete/_private/weblog.html | | webontwerp | home.wanadoo.nl/b.de.zoete/html/webontwerp.html | |zweefvliegen | home.wanadoo.nl/b.de.zoete/html/vliegen.html | `-------------------------------------------------- --<--@ ------------''

What is focus? I have never used the term in my stylesheet.

On 9 Apr 2005 15:11:22 -0700, <ch***********@yahoo> wrote: [Please learn to quote properly. Quote the bit you reply to, attribute it and then reply underneath the quote.

What is focus? I have never used the term in my stylesheet.

<www.w3/TR/CSS2/selector.html#dynamic-pseudo-classes> -- ,-- --<--@ -- PretLetters: ''woest wyf'', met vele interesses: ----------. | weblog | home.wanadoo.nl/b.de.zoete/_private/weblog.html | | webontwerp | home.wanadoo.nl/b.de.zoete/html/webontwerp.html | |zweefvliegen | home.wanadoo.nl/b.de.zoete/html/vliegen.html | `-------------------------------------------------- --<--@ ------------''

更多推荐

后退按钮会干扰导航

本文发布于:2023-10-08 02:33:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1471261.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:干扰   按钮

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!