在这个 HTML 标签中,我不想突出显示单词“or”。
你怎么能这样做?
<p>To ensure that you continue receiving our emails, <a href="mailto: [email protected]">please add us to your address book or safe list.</a>
答案1
为什么要让事情复杂化,使用两个 mailto 链接。
To ensure that you continue receiving our emails,
<a href="mailto: [email protected]">please add us to your address book</a>
or
<a href="mailto: [email protected]">safe list.</a>
答案2
我知道你已经得到了答案,但我认为这段代码会对你更有帮助:
<style type="text/css">
.EMail_Link:hover
{
background: yellow;
color: black;
}
.EMail_Link:active
{
color: red;
}
</style>
<label>
To ensure that you continue receiving our emails,
<a href="mailto: [email protected]" class="EMail_Link">please add us to your address book</a>
or
<a href="mailto: [email protected]" class="EMail_Link">safe list</a>.
</label>
<label>
当您将鼠标悬停在文本上时,光标将从 IBeam 更改为箭头。
class="EMail_Link"
将更改链接样式。
答案3
如果您不进行相应标记,普通文本将永远不会被突出显示。因此,您需要标记句子的所有部分才能突出显示。