问问题
120 次
3 回答
1
尝试
var Default = $('div').css('font-family')
var sele = $('#editorFontN')
sele.val($('div').css('font-family'))
于 2013-08-23T10:38:00.233 回答
1
sele.val($('div').css('font-family'));
于 2013-08-23T10:39:41.290 回答
0
尝试这个
var Default = $('div').css('font-family')
var sele = $('#editorFontN');
if ($('div').css('font-family') == "arial") {
sele.prop('selectedIndex', 0);
} else if ($('div').css('font-family') == "alex_brushregular") {
sele.prop('selectedIndex', 1);
} else if ($('div').css('font-family') == "quicksandregular") {
sele.prop('selectedIndex', 2);
}
希望这有帮助,谢谢
于 2013-08-23T10:52:47.757 回答