【发布时间】:2020-11-07 06:03:32
【问题描述】:
我有这段代码可以插入链接并更改它们的颜色。我的问题是当我使用此代码时,页面上的所有链接都会将其颜色更改为此设置。但是我只想要这个链接的这些颜色,其他链接应该保持它们的颜色。
谁能帮帮我?
<!DOCTYPE html>
<html>
<head>
<style>
/* unvisited link */
a:link {
color: #9c1006;
}
/* mouse over link */
a:hover {
color: #000000;
}
</style>
</head>
<body>
<a href="link">link text</a></p>
【问题讨论】:
标签: html css wordpress woocommerce css-selectors