我试图在custom block in bookdown
中设置链接样式。自定义块类型称为" rmdcomment",我已将以下内容添加到style.css
文件中:
.rmdcomment {
padding: 1em 1em 1em 4em;
margin-top: 30px;
margin-bottom: 30px;
background: #1f9ac9;
position:relative;
color: white;
}
.rmdcomment:before {
content: "\f075";
font-family: FontAwesome;
left:10px;
position:absolute;
top:0px;
font-size: 45px;
color: white;
}
以上显示正确。
我还在(不成功)尝试设置链接样式时添加了以下内容:
.rmdcomment a:link {text-decoration: underline; font-weight:bold; color:white;}
.rmdcomment a:visited {text-decoration: underline; font-weight:bold; color:white;}
.rmdcomment a:hover {text-decoration: underline; font-weight:bold; color:white;}