gpt4 book ai didi

css - 无法从 :hover element & cannot see text-decoration:underline in chrome inspector 中删除下划线

转载 作者:太空宇宙 更新时间:2023-11-04 05:46:15 27 4
gpt4 key购买 nike

我的按钮悬停时显示下划线。查看 chrome 检查器,我的 CSS 被忽略了,但没有其他正在设置的 CSS

a:hover{text-decoration:none}

此处为 Chrome 检查器的屏幕截图 chrome inspector screenshot

下面有更多的HTML和CSS是这两个片段

HTML

<div class='container'>
<br />
<br />
<h1 class='header center red-text text-lighten-1'>INFOSHOT</h1>
<div class='row center'>
<h5 class='header col s12 light'>Better and Easier Research</h5>
</div>
<div class='row center'>
<a
href='/register'
id='download-button'
class='btn-large waves-effect waves-light red lighten-1'>
Get Started
</a>

</div>

CSS

text-decoration: none;
color:white;
}

应用.css


/* CSS RESET */
/* @import '@atlaskit/css-reset'; */

/* Fonts */
@import url('https://fonts.googleapis.com/css?family=Roboto');
/* Schemes */
/* @import './css/globalSettings.css'; */
/* Materialize */
@import url('https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Custom CSS */
@import './css/overides.css';```

最佳答案

试试这个

a:hover{text-decoration:none}

不是这个

a:hover:{text-decoration:none}

关于css - 无法从 :hover element & cannot see text-decoration:underline in chrome inspector 中删除下划线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58688690/

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