2014-10-30 49 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

相關問題