想像这样的CSS翻转 [英] Would like CSS rollover like this
问题描述
http://www.masterstouchremodeling.com/
想要相同的效果,但仅限跨浏览器的CSS。
任何人都知道怎么做?我也不想使用图像。
" Mr。清洁" < mrclean @ P与M. g.com>写道:
http://www.masterstouchremodeling.com /
想要相同的效果,但只能在跨浏览器的CSS中使用。
任何人都知道怎么做?我也不想使用图像。
大致如下:
a {padding-right: 20px;}
a:link {text-decoration:none}
a:hover {text-decoration:underline overline; background-image:
url(arrow.gif); background-repeat:no-repeat; background-location:
正确的中心;}
根据需要调整并添加其他样式。
如果有的话有可能你的链接文字可以换行,然后事情就会变得更加复杂。
史蒂夫
-
我的理论给你起见,我的异端邪说你,
我从不回信,你不喜欢我的领带。 - 医生
Steve Pugh< st *** @ pugh.net> < http://steve.pugh.net/>
先生。 Clean写道:
http://www.masterstouchremodeling。 com /
想要相同的效果,但只能在跨浏览器的CSS中。
a:悬停{
当指针悬停在链接上时,
/ *样式* /
}
你应该很好并且也将焦点添加到它。例如:
a:link {
颜色:蓝色;
背景颜色:白色;
}
a:悬停,a:焦点{
颜色:#999;
背景颜色:蓝色;
border-top:1px solid#999;
}
有关更多示例,请参阅sig中的url。
-
Brian(删除.invalid给我发电子邮件)
Steve Pugh写道:"先生。清洁" < mrclean @ P与M. g.com>写道:
http:// www .masterstouchremodeling.com /
想要相同的效果,但只能在跨浏览器的CSS中使用。
任何人都知道怎么做?我也不是真的想要使用图像。
大致如下:
一个{padding-right:20px;}
a:link {text-decoration:none}
a:悬停{text-decoration:下划线; background-image:
url(arrow.gif); background-repeat:no-repeat; background-location:
right center;}
根据需要调整并添加其他样式。
如果你的链接文本有可能包装那么东西变得稍微复杂了。
工作正常,但无论我尝试什么,图形都不显示。
http://www.masterstouchremodeling.com/
Would like the same effect but in cross-browser CSS Only.
Anyone know how to do it? I don''t really want to use images, either.
"Mr. Clean" <mrclean@p&g.com> wrote:
http://www.masterstouchremodeling.com/
Would like the same effect but in cross-browser CSS Only.
Anyone know how to do it? I don''t really want to use images, either.
Roughly as follows:
a {padding-right: 20px;}
a:link {text-decoration: none}
a:hover {text-decoration: underline overline; background-image:
url(arrow.gif); background-repeat: no-repeat; background-location:
right center;}
Tweak and add other styles as needed.
If there''s a chance that your link text may wrap then things become
slightly more complicated.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don''t like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Mr. Clean wrote:
http://www.masterstouchremodeling.com/
Would like the same effect but in cross-browser CSS Only.
a:hover {
/* styles when a pointer is hovered over a link */
}
You should be nice and add focus to that as well. Example:
a:link {
color: blue;
background-color: white;
}
a:hover, a:focus {
color: #999;
background-color: blue;
border-top: 1px solid #999;
}
See url in sig for more examples.
--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Steve Pugh wrote:"Mr. Clean" <mrclean@p&g.com> wrote:http://www.masterstouchremodeling.com/
Would like the same effect but in cross-browser CSS Only.
Anyone know how to do it? I don''t really want to use images, either.
Roughly as follows:
a {padding-right: 20px;}
a:link {text-decoration: none}
a:hover {text-decoration: underline overline; background-image:
url(arrow.gif); background-repeat: no-repeat; background-location:
right center;}
Tweak and add other styles as needed.
If there''s a chance that your link text may wrap then things become
slightly more complicated.
Works fine except that the graphic doesn''t show at all no matter what I try.
这篇关于想像这样的CSS翻转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!