2014-10-30 48 views
0

我用HTML5,CSSjQuery创建了简单的网页。需要在index.html中添加hteader.html的内容是什么?

这里是我的index.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"> 
    <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添加的内容是什么?

任何帮助将不胜感激。

+0

实际上什么footer.php – 2014-10-30 05:07:31

+0

确定三个主要页面,主要的index.php,并列入indesx.php第二页,1)标题页,2)这个标题页包含在index.php – 2014-10-30 05:17:25

+0

你在所有的header.php头内容是你的要求 – 2014-10-30 05:18:14

回答

0

在header.html中

logo 
menu 

在footer.html

social icon 
copy rights 
-1

所有这一切都需要在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> 
+0

确定主要三个页面,主要index.php,并包含在indesx.php两页,1)页眉,2)footer.php – 2014-10-30 05:16:04

+0

然后添加所有页面header.php和footer.php – 2014-10-30 05:16:41

+0

是的,像所有的html页面,你需要开始与<!DOCTYPE HTML!> 与 – Duetschpire 2014-10-30 05:19:19

相关问题