gpt4 book ai didi

html - Bootstrap : Why does input group button revert to default grey when mouse away?

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

这是我的问题的可视化: enter image description here

我尝试使用 CSS 更改默认的灰色背景颜色。即使我更改了 Add-ButtonRemove-Button 的背景颜色,默认的灰色背景似乎仍然存在。我真的很感激这方面的帮助!

HTML

<div class="row">
<div class="col-lg-7">
<div class="form-group">
<div class="input-group input-group-lg">
<div class="input-group-btn">
<button type="button" id="Remove-Button" class="btn btn-default" aria-label="Remove">
<span class="glyphicon glyphicon-minus-sign" aria-hidden="true"></span>
</button>
</div>
<input type="text" name="Worksheet-Problem" class="form-control" placeholder="Problem..." aria-label="Write worksheet problem here">
<div class="input-group-btn">
<button type="button" id="Add-Button" class="btn btn-default" aria-label="Add">
<span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span>
</button>
</div>
</div>
</div>
</div>
</div>

CSS 颜色按钮部分

/*Color button & icons*/

#Add-Button:hover {
background-color: #E5FFFB;
}

#Remove-Button:hover {
background-color: #FCC1C5;
}

JSFiddle of my code

最佳答案

你可能有代码#Add-Button:hover, #Add-Button:focus { background: ... }

关于html - Bootstrap : Why does input group button revert to default grey when mouse away?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38132228/

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