我正在尝试隐藏正在创建的表单上的单选框中的复选框。您可以在这里看到问题:
http://46.101.59.121/projects/citynew/index.php
<div class="col-xs-6" style="margin-top:20px">
<div class="row">
<input id="buy" checked="checked" name="format" type="radio" value="sales"/><label for="buy" class="typebutton radio_img_label">Buy</label>
</div>
</div>
<div class="col-xs-6" style="margin-top:20px">
<div class="row">
<input id="rent" name="format" type="radio" value="lettings"/><label for="rent" class="typebutton radio_img_label">Rent</label>
</div>
</div>
那是我的HTML,我的CSS是
.typebutton {
background-color: #fff;
border: 2px solid #fff;
font-weight: normal;
margin-left: auto;
margin-right: auto;
padding: 5px 15px;
text-align: center;
width: 100%;
}
我怎样才能做到这一点?
提前致谢!
保罗
你可以加
.row input[type=radio] {display:none}
给你的CSS。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句