后退按钮会干扰导航 - 如何避免这种情况? [英] Back button interferes with navigation - how can this be avoided?
问题描述
我的带有免费教科书的网页有一个简单的html导航。
将光标移动到菜单项上使
显示菜单项为红色,使用onmouseover。 />
如果我点击该菜单项,我会进入新页面。
一切正常。但是,如果我再用后退按钮(Mac Safari和IE - 还没有
checke在PC上)回到
我会回到以前的
页面,但选择下一个已经/仍然突出显示。
(在这种情况下有两个红条。)丑陋。
所有编程都在html页面和一个css文件中;
没有隐藏任何内容。 (参见 http://www.motionmountain.net )
出了什么问题?如何避免这种情况?
任何提示都表示赞赏。
问候
Christoph Schiller
2005年4月9日14:36:28 -0700,< ch ********** *@yahoo.com>写道:
我的带有免费教科书的网页有一个简单的html导航。
在菜单项上移动光标使菜单项显示为红色,使用onmouseover 。
如果我点击该菜单项,我会进入新页面。
一切正常。但是,如果我然后用后退按钮(Mac Safari和IE - 还没有在PC上运行)回到
,我会回到之前的页面,但是可以选择下一个已经/仍然突出显示。
(在这种情况下有两个红色条。)丑陋。
所有编程都在html页面和一个css文件中;
没有什么是隐。 (参见 http://www.motionmountain.net )
出了什么问题?如何才能避免这种情况?
我没有去看,但这对我来说听起来不错。
元素a可能仍然具有焦点。如果你设定一个:焦点(或者可能是
a:活跃,如果事实证明它仍然是活跃的),背景颜色为
选择,你所谓的问题可能就会消失。
-
, - - < - @ - PretLetters:''woest wyf'',遇见vele interesses:------ ----。
|博客| http://home.wanadoo.nl/b。 de.zoete / _private / weblog.html |
| webontwerp | http://home.wanadoo.nl/b。 de.zoete / html / webontwerp.html |
| zweefvliegen | http://home.wanadoo.nl/b。 de.zoete / html / vliegen.html |
` --------------------------- ----------------------- - < - @ ------------''
什么是焦点?我从未在样式表中使用过该术语。
2005年4月9日15:11:22 -0700,< ch ****** *****@yahoo.com>写道:
[请学习正确引用。引用你回复的位,将其归结为
然后在引号下面回复。
什么是焦点?我从未在样式表中使用过该术语。
< http://www.w3.org/TR/CSS2/selector.html#dynamic-pseudo-课程>
-
, - - < - @ - PretLetters:''woest wyf'',遇见了vele interesses: - ---------。
|博客| http://home.wanadoo.nl/b。 de.zoete / _private / weblog.html |
| webontwerp | http://home.wanadoo.nl/b。 de.zoete / html / webontwerp.html |
| zweefvliegen | http://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 http://www.motionmountain.net )
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.com> 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 http://www.motionmountain.net )
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 | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://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.com> 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.
<http://www.w3.org/TR/CSS2/selector.html#dynamic-pseudo-classes>
--
,-- --<--@ -- PretLetters: ''woest wyf'', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------''
这篇关于后退按钮会干扰导航 - 如何避免这种情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!