我怎样才能使不同的HTML链接不同的颜色。 。 [英] how can i make different html links different colors . .

查看:101
本文介绍了我怎样才能使不同的HTML链接不同的颜色。 。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我生成一个带有许多不同链接的html文件,它们(默认情况下)都显示常规的蓝色。无论如何,我可以使某些链接不同的颜色。请注意,这个html作为一个电子邮件被推入outlook,所以我不能有单独的css文件。

你可以把你的css在< html> < head /> 中。用你想要的颜色来设计你的链接。如果您需要多种类型的链接,请使用类。例如

  a {color:#abcde1} 
a.visited,a.hover {color:#1abcde;}

a.special {color:#123456;}


I am generating a html file with many different links and they (by default) all show up the regular blue color. Is there anyway i can make certain links different colors. note that this html is getting pushed into outlook as an email so i can't have separate css files.

解决方案

You can put your css in the <head/> of the <html>. Style your links with the color(s) you want. If you need more than one type of link, use classes. e.g.

a { color: #abcde1}
a.visited, a.hover {color: #1abcde;}

a.special {color:#123456;}

这篇关于我怎样才能使不同的HTML链接不同的颜色。 。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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