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比例定位