gpt4 book ai didi

html - 如何修复没有样式的 html 工具提示?

转载 作者:行者123 更新时间:2023-11-27 23:10:37 24 4
gpt4 key购买 nike

使用 html 工具提示并将样式应用于工具提示类,正在使用开发人员工具检查应用样式,但在页面中不可见。

我已经尝试在 w3schools 中运行我的代码并且它正在运行。尝试在 DevTools 中更改值,它在我的本地仍然相同。

<h4>
I am
<input type=number>
years old
<span class= "tooltip">Some Text</span>, my annual income old <br>
is
<input type=number>
and I have saved <br>
<input type=number class= "numbers">
<span class="sub">(pre-tax or tax-exempt)</span>
and
<input type=number> <span>(taxed).</span>
</h4>

应用的样式是:

.tooltip {
position: relative !important;
border: 2px solid black !important;
height: 100px;
background: red !important;
width: 100px;
}

这就是我得到的。背景颜色和边框不可见,但它在源代码中。

The Result

最佳答案

问题已解决,将类工具提示更改为其他名称,因为我的样式已被环境中以前编写的样式覆盖。

关于html - 如何修复没有样式的 html 工具提示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58536732/

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