gpt4 book ai didi

asp.net - 图像单选按钮 - NFL Weekly

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

我已选择使用此代码构建每周 NFL 选秀的应用程序。谁能帮我隐藏通用单选按钮?我想收集每个人的所有选择。

HTML

 <div class="buttons" runat="server">
<input type="radio" name="gp1" id="gpBAL" value="working" />
<label for="gpBAL" class="working"><span>BAL</span></label>

<input type="radio" name="gp1" id="gpNC" value="not checked" checked/>
<label for="gpNC" class="not_checked"><span>&nbsp;||</span></label>

<input type="radio" name="gp1" id="gpWAS" value="faulty" />
<label for="gpWAS" class="faulty"><span>WAS</span></label>
</div>

CSS

  body{font-family: helvetica;}
input[type="radio"]{ -webkit-appearance:none;}
input[type="radio"]+label
{
background: url('../images/switch.png') repeat-x;
float: left;
display:Block;
}
input[type="radio"] + label span
{
display: block;
background: url('../images/switch.png') no-repeat;
display: block;
line-height: 30px;
}
input[type="radio"]+label.working span
{
background-position: left -90px; padding: 0 10px;
}
input[type="radio"]+label.not_checked span
{
padding: 0 10px;
}
input[type="radio"]+label.faulty span
{
background-position: right -180px; padding: 0 10px;
}
input[type="radio"]:checked+label
{
background-position: left -60px;
}
input[type="radio"]:checked+label.working span
{
background-position: left -150px;
color: white;
}
input[type="radio"]:checked+label.faulty span
{
background-position: right -240px;
color: white;
}

input[type="radio"]:checked+label.not_checked
{
background-position: left -30px;
color: white;
}

最佳答案

input[type="radio"] {display: none;}

隐藏单选按钮。

关于asp.net - 图像单选按钮 - NFL Weekly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11593582/

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