gpt4 book ai didi

css - 如何选择第二个提交按钮以暗示其他颜色

转载 作者:行者123 更新时间:2023-12-02 04:44:26 35 4
gpt4 key购买 nike

.formholder input[type="submit"] {
background: #84c40b;
font-size: 10px;
display: inline-block;
width: 115px;
height:31px;
border: none;
color: #fff;
text-transform:uppercase;

我如何使用 CSS 选择,以便我可以为第二个提交按钮暗示另一种颜色?

非常感谢。

最佳答案

CSS3 :nth-child() Selector

.formholder input[type="submit"]:nth-child(2) {
background: #ff0000;

关于css - 如何选择第二个提交按钮以暗示其他颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34475698/

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