<style>

.MacPlayer {

width: 100%; 

height: auto; 

}

</style>

<div class=".MacPlayer"></div>

<script src="http://www.xinti.xyz/template/m-index/js/jquery.min.js"></script>

<script>

var Body_Width = document.body.scrollWidth; // 取窗口宽度

var Player_w = 1920; //图片宽度

var Player_h = 1080; //图片高度

Player_Height = Player_h * ( Body_Width / Player_w ); //计算等比例缩放高度

$(".MacPlayer").css({ height: Player_Height }); //设置宽度

//alert(Player_Height);

</script>