css 这里的问题是在我们的页面上放置这么大的文件会减慢那些也试图加载到山姆的其他页面元素

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 这里的问题是在我们的页面上放置这么大的文件会减慢那些也试图加载到山姆的其他页面元素相关的知识,希望对你有一定的参考价值。

/*
The other reason for the empty div is so that we have somewhere to target with 
the javascript as the area to plug with the movie code. Let's write the simple 
javascript do do the job:
*/

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(window).bind("load", function() {  
	$('#movie-area').load('movie.html');
}); 
</script>

/*
I am using jQuery to do this. jQuery just makes this job much easier. The above 
code, in plain english: "Wait for the entire page to load, then find the div 
with the id of "movie-area", then go get the file "movie.html" and insert it's 
contents inside the found div. The "movie.html" file will of course include 
whatever the markup is for the video I want. Likely some kind of object or 
script.
*/
First, we make a place on our page for the movie. An empty div will do:

<div id="movie-area">
</div>
/*
This way we can style that area with CSS. This is a good idea so when the movie does get added, it doesn't abruptly move things out of the way to make room for itself. We'll also make the area black, much more movie-like:
*/

#movie-area {
	width: 320px;
	height: 240px;
	background: black;
}

以上是关于css 这里的问题是在我们的页面上放置这么大的文件会减慢那些也试图加载到山姆的其他页面元素的主要内容,如果未能解决你的问题,请参考以下文章

PCB下元器件重叠放置

django -静态文件能加载进入,但是在页面上却显示不出来

谈CSS模块化封装-继承-多态

比屏幕大的中心图像

drupal 7删除样式标签形式rss视图字段

鼠标悬停tip效果如何用css实现?