gpt4 book ai didi

css - 将 CSS 添加到 标记不起作用

转载 作者:行者123 更新时间:2023-12-03 05:27:48 25 4
gpt4 key购买 nike

关闭。这个问题是not reproducible or was caused by typos .它目前不接受答案。












想改进这个问题?将问题更新为 on-topic对于堆栈溢出。

6年前关闭。




Improve this question




我尝试将 CSS 添加到按钮,但它只是作为普通超链接输出。
我需要使用 <button>代替标签?

<a href="example.com" style=".button { /*Tons of correctly written, irrelevant CSS */ }">text</a>

最佳答案

您忘记了“=”符号:

style="text-decoration:none; ...

我强烈建议您在单独的样式表中外包 css

关于css - 将 CSS 添加到 <a> 标记不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32475429/

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