IE下Css圆角没有的解决方法( 四 )


vml_parent.document.ieCSS3_stylesheet.ie7 = true;
}
}
function updatePositionAndSize() {
if (typeof(window.ieCSS3.vmlified_elements) != ’object’) { return(false); }
for (var i in window.ieCSS3.vmlified_elements) {
var el = window.ieCSS3.vmlified_elements[i];
if (typeof(el.vml) != ’object’) { continue; }
for (var z in el.vml) {
//var parent_pos = findPos(el.vml[z].parentNode);
var new_pos = findPos(el);
new_pos.x = (new_pos.xel.vml[z].position_offset.x)’px’;
new_pos.y = (new_pos.yel.vml[z].position_offset.y)’px’;
if (el.vml[z].style.left != new_pos.x) { el.vml[z].style.left = new_pos.x; }
if (el.vml[z].style.top != new_pos.y) { el.vml[z].style.top = new_pos.y; }
var new_size = {
’width’: parseInt(el.offsetWidthel.vml[z].size_offset.width),
’height’: parseInt(el.offsetHeightel.vml[z].size_offset.height)
}
if (el.vml[z].offsetWidth != new_size.width) { el.vml[z].style.width = new_size.width’px’; }
if (el.vml[z].offsetHeight != new_size.height) { el.vml[z].style.height = new_size.height’px’; }
}
}
if (event(event.type == ’resize’)typeof(window.ieCSS3.previous_onresize) == ’function’) { window.ieCSS3.previous_onresize(); }
}
/script

推荐阅读