我设计了一个非常酷的外观布局,但没有线索如何使它的收音机工作!下面是这个表格的模型: 我已经为文本输入创建了CSS(并且将在下面为其他寻找类似的东西的人添加它)。我现在需要弄清楚的是“你在找什么服务?”部分。我已经为蓝框编写了CSS,但是现在我需要弄清楚如何将“咨询,Web开发和图形设计”转变为无线电选择,其旁边带有复选标记的选择框是选定的无线电框。超过我的头。我仍然试图弄清楚,如果我这样做会回来的。只是寻找一些关于你如何写这些无线电的输入。CSS挑战:自定义广播选择
文本输入电流代码:
input[type=text] {
width: 365px;
height: 54px;
margin: 0 0 12px 0;
padding: 0 0 0 25px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
background: #a2bdd8;
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #76899d), color-stop(0.075, #a2bdd8));
color: #fff;
font-size: 30px;
border: none;
}
*:focus { outline: none; }
当前代码为背景,以“你在找什么样的服务?”:
#options {
width: 270px;
height: 120px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
background: #a2bdd8;
}
可能相关:http://stackoverflow.com/questions/5112995/is-there-an-easy-way-to-replace-radio-button-with-images-and-a-colored-border-fo – Blender 2011-04-25 01:44:48