问题描述
我需要为已禁用CSS的Blackberry浏览器设置链接样式.
I need to style links for a Blackberry browser that has disabled CSS.
以下是我要实现的目标:
The following is what I try to achieve:
<style type="text/css">
a.hover {
border:0;
}
a {
text-decoration: none;
}
</style>
使用html甚至有可能吗?
Is it even possible, just using html?
推荐答案
您只能设置颜色.
<body link="XXX" alink="YYY" vlink="ZZZ">
XXX是用于链接的颜色,YYY是鼠标悬停在链接上的颜色,ZZZ是已访问的链接的颜色.就像样式表一样,颜色可以用十六进制表示法给出
XXX being the color used for links, YYY the color when mouse hovers the link and ZZZ the color for already visited links. Color can be given in hex notation just like with stylesheets
#AABBCC
您无法设置链接是否带下划线或是否带有边框.这完全取决于浏览器...除非这些设备具有一些特殊的秘密非标准HTML.
You cannot set whether links are underlined or not, or have a border or not. This is totally up to the browser... unless these devices have some special, secret non-standard HTML.
这篇关于如何在没有CSS的情况下设置HTML链接的样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!