小编use*_*587的帖子

为什么我的字体颜色不会改变?CSS3

我试图将#commentslink的颜色改为白色.我所有的其他字体样式(字体系列,大小)都在工作,只是颜色不会改变

我的HTML是这样的;

<div id="commentslink">
  <div class="circle">
    <p><a href="">10</a></p>
  </div>
</div>
Run Code Online (Sandbox Code Playgroud)

而我的CSS就是这个

a:link, a:visited {
  color: #0eb0d3;
  text-decoration: none;
}

a:hover {
  color: #0eb0d3;
  opacity: 0.4;
  text-decoration: none;
}


#commentslink {
  float: right;
  font-color: #ffffff;
  font-size: 19px;
  font-family: 'Montserrat', sans-serif;
}

.circle {
  float: right;
  background-color: #f89b2d;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  position: relative;
  margin-top: -10px;
  margin-right: 20px;
}
Run Code Online (Sandbox Code Playgroud)

html css

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

css ×1

html ×1