我发布这个是因为我最近在设置带有MAMP堆栈的虚拟主机时遇到了很多麻烦,因为Apple在Mac OS 10.8的默认Apache2安装上限制了可用的PHP版本.
这是一个非常快速的指南,我应该做什么,我欠Stack Overflow上这个问题的解决方案:
您可以将此视为对我有用的汇编,因为已接受的答案没有效果,而是那些得分明显较低的答案.
同样,我所看到的每个指南都没有提到用户在源问题上回答的一些要点.
尝试编辑两个单选按钮的外观,如果标记如下,则一切正常:
<ul class="radioHorizontal">
<li class="spaceRight">
<input id="radioYes" type="radio" name="radios" checked>
<label for="radioYes">Yes</label>
</li>
<li>
<input id="radioNo" type="radio" name="radios">
<label for="radioNo">No</label>
</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
但是,如果我删除:name="radios"并且保持其他所有内容不受影响,在我的ul列表内部或外部,按钮永远不会被取消选中,并且我所期望的效果会被破坏.
My CSS3 is as follows:
input[ type = radio ]
{
display:none;
}
input[ type = radio ] + label
{
padding: 4px 12px;
background-color: rgba( 40, 40, 40, 1 );
border: 2px solid rgb( 30, 30, 30 );
box-shadow: 0px 1px 0px rgba( 125, 125, 125, 0.75 );
}
input[ type = …Run Code Online (Sandbox Code Playgroud)