欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jQuery解決下拉框select設(shè)寬度時(shí)IE 6/7/8下option超出顯示不全

 更新時(shí)間:2013年05月27日 17:06:47   作者:  
jQuery解決IE 6/7/8 BUG:下拉框select設(shè)寬度時(shí)option超出顯示不全,經(jīng)過(guò)修改效果還不錯(cuò),遇到類(lèi)似情況的朋友可以參考下哈
個(gè)人做了一些自定義的修改
復(fù)制代碼 代碼如下:

<!--[if lt IE 9]>
<script type="text/javascript">
jQuery(function($){
var el;

$("select").each(function() {
el = $(this);
el.data("origWidth", el.css("width"));
// el.data("oriWidth",85);
})
.focusin(function(){
el=$(this);
el.css("width", "auto");

//if(el.width() < el.data("oriWidth")){
// el.css("width", el.data("origWidth"));
//}

})
.bind("blur change ", function(){
el = $(this);
el.css("width", el.data("origWidth"));
});
});
</script>
<![endif]-->

相關(guān)文章

最新評(píng)論