更改下划线颜色 [英] Changing Underline color

查看:140
本文介绍了更改下划线颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个代码:

echo "<u><font color='red'><br>$username</font></u>";

首先,你可以看到,它有下划线(< u>)。第二,所有的文本都是红色的。那么是否还有文本($ username)为红色,下划线为黑色?

Firstly, as you can see, it's underlined (< u >). Second, all text is all red. Well is there anyway to leave the text ($username) red but the underline black?

推荐答案

最好的方法是使用不同颜色的 border-bottom ,但不是真的下划线。

No. The best you can do is to use a border-bottom with a different color, but that isn't really underlining.

这篇关于更改下划线颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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