gpt4 book ai didi

html - 为什么我的字体不是 Trebuchet MS

转载 作者:太空宇宙 更新时间:2023-11-04 11:14:54 24 4
gpt4 key购买 nike

我想将 Trebuchet MS 用于侧边栏 - 在 Dreamweaver 上字体显示完全符合我的要求,但当我在实时 View 中查看时,字体变成了难看的字体。

HTML

<div id="nav">
<ul>
<li class="active"><a Href=""><i class="fa fa-list"> Home</i></a></li>
<li><a Href=""><i class="fa fa-list"> Profile</i></a></li>
</ul>
</div>

CSS

#nav{
position: fixed;
width: 170px;
margin-left: -170px;
background-color: rgba(255,255,255, 0.8);
}
#nav ul{
list-style: none;
margin: 0;
padding: 0;
}
#nav li a:link, #nav li a:visited{
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-size: 90%;
display: block;
padding: 15px;
border-left: 5px solid #26a9ec;
text-decoration: none;
color: #333;
}
#nav li a:hover{
background-color: #26a9ec;
color: #fff;
}
#nav .active a, #nav .active a:visited{
background-color: #1a1aff;
color: #fff;

谢谢。

最佳答案

也许您的浏览器根本不支持它。

例如,when I ran your code on JSFiddle.net , Trebuchet MS 字体显示得很好。

font-family: "Trebuchet MS", Helvetica, sans-serif; 应该没有任何问题; - 它对我来说工作得很好。

screenshot

关于html - 为什么我的字体不是 Trebuchet MS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33312684/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com