gpt4 book ai didi

使用旧 css 的 HTML5 渲染

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

我正在使用一个使用 HTML5 和 CSS3 的菜单组件。

该组件只有在我在页面开头设置标签时才有效。好的!

但是,当我设置这个标签时,旧的 CSS 样式就停止工作了。颜色和字体没有改变

CSS声明如下:

<link type="text/css" rel="stylesheet" href="cbpp.css" />

CSS 是:

textoouro_pequeno {
font-family: "Times New Roman", Times, serif;
font-style: italic;
color: DED7A8;
font-weight: bold;
font-size: 15px;
}

使用css的链接如下:

<a href="http://www.cartedaparati.com.br" class='textoouro_pequeno'>Página Principal</a>

我应该在 css 中做什么更改?

非常感谢

安德烈

最佳答案

您的 css 声明目前没有引用类——您需要将其更新为

.textoouro_pequeno {

a.textoouro_pequeno {

否则它会尝试指向名为 textoouro_pequeno 的标签,但没有该名称的 HTML 标签。

此外,上面的评论是正确的:颜色前面需要“#”。

关于使用旧 css 的 HTML5 渲染,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13056495/

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