Javascript jsPsych:更改按钮位置和样式
我试图使用jsPsych html按钮响应插件()显示两个按钮。我使用图像作为按钮,而不是文本。我在“选项:”选项中将它们指定为Javascript jsPsych:更改按钮位置和样式,javascript,html,css,htmlbutton,jspsych,Javascript,Html,Css,Htmlbutton,Jspsych,我试图使用jsPsych html按钮响应插件()显示两个按钮。我使用图像作为按钮,而不是文本。我在“选项:”选项中将它们指定为choices:[“”、“”、 默认情况下,按钮显示在“我的刺激”的中央和下方。相反,我想把它们显示在我的刺激物上面(这反过来又由一堆重叠的图像组成——背景+一些项目),一个在左边,另一个在右边,在相对于我的背景的特定位置。按钮的默认样式为: .jspsych-btn { display: inline-block; padding: 6px 12px;
choices:[“”、“”、
默认情况下,按钮显示在“我的刺激”的中央和下方。相反,我想把它们显示在我的刺激物上面(这反过来又由一堆重叠的图像组成——背景+一些项目),一个在左边,另一个在右边,在相对于我的背景的特定位置。按钮的默认样式为:
.jspsych-btn {
display: inline-block;
padding: 6px 12px;
margin: 0px;
font-size: 14px;
font-weight: 400;
font-family: 'Open Sans', 'Arial', sans-serif;
cursor: pointer;
line-height: 1.4;
text-align: center;
white-space: nowrap;
vertical-align: middle;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
color: #333;
background-color: #fff;
border-color: #ccc;
}
如何以我正在尝试的方式显示按钮?提前非常感谢 更改button\u html参数成功了
button_html: ['<button class="jspsych-btn" style = "position:absolute; left:284.5px; top: 270px">%choice%</button>', '<button class="jspsych-btn" style = "position:absolute; right:284.5px; top: 270px">%choice%</button>']
按钮\u html:['%choice%','%choice%]