我正在创建一个多项选择测验,每个问题有4个答案。而不是答案是每行1个答案,我希望它们每行2个问题,因此div标签中放置的空间更少。我怎么能这样做?
case 3:echo" <h6>How many albums has Marley released?:</h6>
<h6><input type='radio' name='Q6' value='16' />Sixteen (16)</h6>
<h6><input type='radio' name='Q6' value='5' />Five (5)</h6>
<h6><input type='radio' name='Q6' value='3' />Three (3)</h6>
<h6><input type='radio' name='Q6' value='24' />Twenty-Four (24)</h6> ";
break;
答案 0 :(得分:0)
在css中
h6:nth-child(1) {
display:block;
width:100%;
clear:both;
}
h6 {
width:50%;
display:block;
float:left;
}