Css 需要从index.html添加到hteader.html中的内容是什么?
我使用HTML5、CSS和jQuery创建了简单的网页 这是我的index.html:Css 需要从index.html添加到hteader.html中的内容是什么?,css,html,Css,Html,我使用HTML5、CSS和jQuery创建了简单的网页 这是我的index.html: <!DOCTYPE HTML> <html> <head> <title>Responsive Design Website</title> <link rel = "stylesheet" type = "text/css" href = "css/style.css" media="screen"/> &
<!DOCTYPE HTML>
<html>
<head>
<title>Responsive Design Website</title>
<link rel = "stylesheet" type = "text/css" href = "css/style.css" media="screen"/>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://cdn.jsdelivr.net/animatecss/2.1.0/animate.min.css">
<link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,700,800" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="engine1/style.css" />
<link href="video-js.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="img/favicon.ico">
<script src="video.js"></script>
<script type="text/javascript" src="engine1/jquery.js"></script>
<script>
videojs.options.flash.swf = "video-js.swf";
</script>
</head>
<body id="demo-one">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div id = "wrap">
<header>
----
</header>
<!--Here slideshow-->
<aside>
------
</aside>
<!---Main content-->
<footer>
------
</footer>
</div>
</body>
</html>
现在我想了解一些基本知识,需要从index.html文件中添加哪些内容到header.html和footer.html中
任何帮助都将不胜感激。在header.html中
<!DOCTYPE html>
<html>
<head>
<title>Responsive Design Website</title>
<link rel = "stylesheet" type = "text/css" href = "css/style.css" media="screen"/>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://cdn.jsdelivr.net/animatecss/2.1.0/animate.min.css">
<link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,700,800" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="engine1/style.css" />
<link href="video-js.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="img/favicon.ico">
</head>
</html>
在footer.html中
<!DOCTYPE html>
<html>
<footer>
<script src="video.js"></script>
<script type="text/javascript" src="engine1/jquery.js"></script>
<script>
videojs.options.flash.swf = "video-js.swf";
</script>
</footer>
</html>
所有这些都需要放在header.html中
<!DOCTYPE html>
<html>
<head>
<title>Responsive Design Website</title>
<link rel = "stylesheet" type = "text/css" href = "css/style.css" media="screen"/>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://cdn.jsdelivr.net/animatecss/2.1.0/animate.min.css">
<link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,700,800" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="engine1/style.css" />
<link href="video-js.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="img/favicon.ico">
</head>
</html>
这会出现在footer.html中
<!DOCTYPE html>
<html>
<footer>
<script src="video.js"></script>
<script type="text/javascript" src="engine1/jquery.js"></script>
<script>
videojs.options.flash.swf = "video-js.swf";
</script>
</footer>
</html>
实际上,您的需求是什么?确定主要的三个页面,main index.php,并包含在indexx.php中两个页面,1个页眉,2个页脚。php您所有的页眉内容都包含在header.php中,并且这个页眉包含在index.phpWhat header.html和footer.html中?您可能想知道如何组织您的站点,以便使用某种包含机制使所有页面共享相同的页眉和页脚。这是一个设计问题,与SO无关。但正如所问,这个问题实际上属于“不清楚你在问什么”的范畴。好的,主三页,main index.php,包含在indexx.php中,两页,1页眉,2页脚。php然后添加所有页眉。php和页脚。phpyes,就像所有html页面一样,如果要通过一些include机制使用DOCTYPE和,则需要从开始到结束,这两种机制中都使用DOCTYPE和是绝对不正确的。