我如何覆盖主题链接字体颜色? [关闭]

问题描述 投票:-1回答:1

我已经尝试了几次尝试并编写了代码以覆盖主题,但是由于将其链接保持为蓝色,因此无法将字体的链接更改为黄色。我什至进入style.css进行更改,但仍然没有运气。网站是here

我正在使用的代码是<b><a href="/submit-assignment/" style="color: #ffff00 !important;">here</a></b>。对于主页底部的表单。

<< img src =“ https://image.soinside.com/eyJ1cmwiOiAiaHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS9tVGluTi5wbmcifQ==” alt =“在此处输入图像描述”>

css fonts themes
1个回答
0
投票

页面上的Bootstrap已经应用到a元素,因此您可以在Bootstrap之后加载CSS,或者可以在a中添加一个类,然后执行以下操作:

a.myLinkClass {
  color: #ffeb3b;
  font-weight: bold; /* Use this rather than wrapping with <b> */
}

a.myLinkClass:hover,
a.myLinkClass:focus {
  color: #c8b900;
}

body {
  background-color: rgba(10, 45, 78, .8);
}
<div><a href="/submit-assignment/" class="myLinkClass">Here</a></div>
© www.soinside.com 2019 - 2024. All rights reserved.