我不明白脚本中的一个标签:
if (!$.browser.opera) {
// select element styling
$('select.select').each(function(){
var title = $(this).attr('title');
if( $('option:selected', this).val() != '' ) title = $('option:selected',this).text();
$(this)
.css({'z-index':10,'opacity':0,'-khtml-appearance':'none'})
.after('<span class="select">' + title + '</span>')
.live('change', function(){
val = $('option:selected',this).text();
$(this).next().text(val);
});
$(this).nextAll().remove();
});
};
在上面的脚本中标记“select.select”。 我加粗了; 什么意思? 谢谢!
最佳答案
关于JQuery 标签帮助我,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23868845/