将标题设置为链接和带颜色文字

Posted Yueers

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了将标题设置为链接和带颜色文字相关的知识,希望对你有一定的参考价值。

1.不换行

<div class="x_subtitle">
新浪微博:
<a href="微博地址" target="_blank">
<font color=#ff0000> 微博名称</font>
</a>
GitHub:
<a href="GitHub地址" target="_blank">
<font color=#ff0000>GitHub名称</font>
</a>
</div>

 

2.换行

<div class="x_subtitle">
新浪微博:
<a href="微博地址" target="_blank">
<div style="color: #F00">微博名称 </div>
</a>
GitHub:
<a href="GitHub地址" target="_blank">
<div <nobr>style="color: #F00">GitHub名称<nobr></div>
</a>
</div>

以上是关于将标题设置为链接和带颜色文字的主要内容,如果未能解决你的问题,请参考以下文章