0

抱歉我缺乏知识,但我在我的服务器上安装了 Limesurvey 1.9。 http://ankaracity.com/wingo/index.php?sid=41381

我需要把每个答案放在五颜六色的盒子里。
并且需要将所选答案颜色设为黑色。那么有没有可能用css来做呢?我该怎么做?谢谢。

4

1 回答 1

0

您可以添加 css 代码以删除单选圆圈并使其突出显示(选中时)(无论如何,我仍然不知道如何为每个答案执行此操作)

/*
  Change the look'n'feel of labels (which are adjacent to radiobuttons).
  Add some margin, padding to label
*/
input[type=radio] + label {

    margin:-2px;
*/    padding: 4px 10px;
    background-color: #ffffff;
color: #ff0000;
  border: 1px solid #2f5376;
 padding: 0 0 0 0;
}
/*
 Change background color for label next to checked radio button
 to make it look like highlighted button
*/
input[type=radio]:checked + label { 
   background-image: none;
    background-color:#ff0000;
color:#ffffff;
 padding: 0 0 0 0;
}
于 2013-06-17T14:50:20.790 回答