JS获取DOM带小数的精确属性

if ( $(‘section’).hasClass(‘blancejqurey8’) ) {
$(‘.wrap-our-work’).each(function() {
var h = document.getElementById(“blogcolumnmetro”).getBoundingClientRect().height;
document.getElementById(“ourworktitle”).style.height = h + “px”;
});
};

发布者

优佐

Uazoh优佐生活