這是我下面的HTML代碼:改變顏色時,自定義單選按鈕被選中
<input type="radio" name="form-radio" id="workshops" value="high" checked>
<label id="workshoping" for="workshops">Workshops</label><br>
<input type="radio" name="form-radio" id="courses" value="option2">
<label for="courses">Courses</label><br>
<input type="radio" name="form-radio" id="exclusive" value="option3">
<label for="exclusive">Exclusivess</label><br>
<div class="col-lg-4 col-md-4 col-sm-4">
<H2><a href="#" id="workshopcl">WorkShops</a></H2>
<span>Short Term</span>
<span>Single Session</span>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 coursescl">
<H2><a href="#" class="">Courses</a></H2>
<span>Long Term</span>
<span>Multi Sessions</span>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 exclusivecl">
<H2><a href="#" class="">Exclusives</a></H2>
<span>Skilhippo's Exclusives</span>
</div>
這是我自定義單選按鈕
input[type="radio"] {
display: none;
margin-left: 10px;
}
label {
font-family: $verdana;
font-size:12px;
margin-left:13px;
font-weight: normal;
}
input {
border: 2px solid $black;
border-radius:0;
margin-left:10px;
margin-top:10px;
font-size: 10px;
padding:5px;
color:$dark_grey;
@media (min-width: $tablet) and (max-width: $tablet-max) {
/* Media Query Between Screen 768px and 980px */
width:124px !important;
}
}
input[type="radio"] + label:before {
background-color: #000000;
border: 2px solid #000000;
border-radius: 10px;
color: #FFFFFF;
content: "";
display: inline-block;
font-size: 13px;
height: 15px;
line-height: 9px;
margin: -3px 8px 0 3px;
text-align: center;
vertical-align: middle;
width: 15px;
}
input[type="radio"]:checked + label:before {
content:"\2022";
text-align: center;
}
.high {
color:yellow;
}
如何使用CSS Jquery改變車間顏色id="workshopcl"
當我檢查車間單選按鈕
所以請你們幫我一下
謝謝很多這項工作很好按鈕 – terminator
@ user2963346如果它可以幫助接受答案,很高興幫助:-) –
非常感謝這很好的工作。但我該怎麼做,通過添加在CSS – terminator