0
function positionElements(){
var vidHeight = $('#video').height;
var displace = parseInt(vidHeight, 10) * 0.8;
var topMargin = displace+'px';
$('#video-overlay').offset($('#video').offset()).width($('#video').width());
$('#video-overlay p').css('margin-top', topMargin);
}
我得到NaN这个..我以为parseInt应该让我过去。我需要在这里执行乘法操作?与jQuery比例定位