Ser Archer (Talk | contribs) |
Ser Archer (Talk | contribs) |
||
Line 147: | Line 147: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
setVideo(); | setVideo(); | ||
− | + | setPhoto(); | |
$(".mw-content-ltr").css("width",$(window).width()+"px"); | $(".mw-content-ltr").css("width",$(window).width()+"px"); | ||
$(".mw-content-ltr").css("height",document.body.scrollHeight+"px"); | $(".mw-content-ltr").css("height",document.body.scrollHeight+"px"); | ||
Line 158: | Line 158: | ||
function setVideo(){ | function setVideo(){ | ||
$("#team-video").css("height",$(window).height()*0.7+"px"); | $("#team-video").css("height",$(window).height()*0.7+"px"); | ||
+ | var parent=document.getElementById("mw-content-text"); | ||
+ | var child=document.getElementById("team-video"); | ||
+ | |||
+ | parent.appendChild(child); | ||
+ | } | ||
+ | |||
+ | /****************************填充视频********************************/ | ||
+ | function setVideo(){ | ||
+ | $("#photo1").css("height",$(window).height()*0.7+"px"); | ||
+ | $("#photo1").css("width",$(window).width()*0.9+"px"); | ||
var parent=document.getElementById("mw-content-text"); | var parent=document.getElementById("mw-content-text"); | ||
var child=document.getElementById("team-video"); | var child=document.getElementById("team-video"); |
Revision as of 06:51, 24 August 2018