gpt4 book ai didi

css - 一页有两个 .CSS 样式?

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

所以我目前正在尝试为我的目标网页合并 2 个单独的 .css 文件。他们都导入不同的谷歌字体,问题是,众所周知,最后一个 .css 样式将覆盖第一个。有没有好的方法来处理这个问题,或者这是通常不会做的事情?所有类名也不同。

<link href='http://fonts.googleapis.com/css?family=Raleway:600,900' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>

也许我只是没有以正确的方式调用 .css...如果您需要我提供更多信息,请告诉我。这是一个常见问题吗?

最佳答案

Google 字体允许您将所有字体添加到一个集合中,因为您是单独进行的,它会被覆盖。

<link href='http://fonts.googleapis.com/css?family=Lato:400,700,300italic|Raleway:600,900' rel='stylesheet' type='text/css'>

关于css - 一页有两个 .CSS 样式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25052382/

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