Onmouseover与autostyle冲突 [英] Onmouseover conflict with autostyle

查看:113
本文介绍了Onmouseover与autostyle冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我在使用图层时遇到问题(作为链接使用)。通过使用"onmouseover",该图层可以完成我需要的所有内容(变为粗体,更改背景颜色等)但不能更改文本的颜色。令人惊讶的是,当我在autostyle中删除文本颜色时,
onmouseover正常工作。


请问,有没有人有一些想法?我正在慢慢变得绝望: - (


链接在下方(只需将"点"更改为"。"":


www" ; dot" ceskeafery.cz


非常感谢。


Jan

解决方案

目前还不清楚你要在这里做什么。如果你删除auto-style10不允许颜色改变你想要的颜色?


现在,你可以用CSS完成你在这里所做的一切,而不需要使用onmouseover和onmouseout事件。只需使用css 链接悬停属性来改变样式。例如,使用一组样式用于普通链接和另一组对于悬停的
链接:


a:link {..}


a:hover {..}



http://www.w3schools.com/css/css_pseudo_classes上了解这些内容.asp


HTH


Hello,

I have a trouble with a layer (working as a link). By using "onmouseover", the layer does everything I need (turns bold, change background color etc.) but cannot change color of the text. Surprising is that when I delete text color in autostyle, onmouseover works properly.

Please, does anyone have some idea? I am slowly becoming desperate :-(

the link is below (just change "dot" into ".":

www"dot"ceskeafery.cz

Thank you very much.

Jan

解决方案

It's not clear what you are trying to do here. If you remove auto-style10 doesn't that allow the colour to change as you want?

Now, you can do everything you've done here with CSS, without needing to use the onmouseover and onmouseout events. Simply use the css link hover property to change the style. eg, use one set of styles for the normal link and another set for the hovered link:

a:link {..}

a:hover {..}

Read up about these at http://www.w3schools.com/css/css_pseudo_classes.asp

HTH


这篇关于Onmouseover与autostyle冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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