所以我遇到了button()函数的问题. HTML: input id="nextday_button" name="nextday" type="checkbox" value="true" /label for="nextday_button"yes/label input id="submit_button" name="commit" type="submit" value="Check" / JS: $("#nex
HTML:
<input id="nextday_button" name="nextday" type="checkbox" value="true" /><label for="nextday_button">yes</label> <input id="submit_button" name="commit" type="submit" value="Check" />
JS:
$("#nextday_button").button().css('font-size','36px'); $("#submit_button").button().css({'font-size':'22px', 'padding': '3px 12px 3px 12px'});
#submit_button的样式运作完美,但我不能设置#nextday_button的样式.在这种情况下,.css()似乎不起作用.我在HTML中做错了吗?
尝试删除.Button(). 试试这个$(“#nextday_button”).css(‘font-size’,’36px’);