How do I style a HTML link without CSS?

老子叫甜甜 提交于 2019-12-11 00:58:53

问题


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>

Is it even possible, just using html?


回答1:


You can only set the color.

<body link="XXX" alink="YYY" vlink="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

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.




回答2:


tex-decoration:bilnk; this makes your text blink-blink, like rapper



来源:https://stackoverflow.com/questions/299168/how-do-i-style-a-html-link-without-css

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!