我的带有免费教科书的网页有一个简单的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 | `-------------------------------------------------- --<--@ ------------''
更多推荐
后退按钮会干扰导航
发布评论