I have a nodejs app, which include one folder in the root directory, whose layer is as follow:
/public
/css
/bootstrap.min.css
/font-awesome.min.css
/luqa.css
/fonts
/fontawesome-webfont.eot
/fontawesome-webfont.svg
/fontawesome-webfont.ttf
/fontawesome-webfont.woff
/fontawesome-webfont.woff2
/fontawesome-webfont.otf
/js
/jquery-2.1.4.min.js
some other picture file
I am a really newbie in this field. At first, I think this is about bootstrap, so I went to search about bootstrap. http://getbootstrap.com/getting-started/ But after I download its code, I found only bootstrap.min.css
is the same. Others are all different.
I knew luqa.css
is one self made css, to store some format used in html.
Then I searched font-awesome and downloaded it, http://fontawesome.io/ I found the files in fonts
folder are all the same as well as font-awesome.min.css
in the /css, but font-awesome.css
is gone. Finally, I also tried the file in the /js folder, I download jquery file and there is only one file jquery-2.1.4.min.js to be same.
I am a really newbie in this field. I really want to know why they mix three kind of thing together, and files of these three part can be mixed together. You can delete the other part, what if you may want invoke those deleted file? What's the relationship among those three parts?
Thanks
.
Final folder tree:
/public
/css
/bootstrap.min.css
/font-awesome.min.css
/luqa.css
/fonts
/fontawesome-webfont.eot
/fontawesome-webfont.svg
/fontawesome-webfont.ttf
/fontawesome-webfont.woff
/fontawesome-webfont.woff2
/fontawesome-webfont.otf
/js
/jquery-2.1.4.min.js
/bootstrap.min.js
/index.html
Given the above folder structure, to use everything in index.html, you would have something like:
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/luqa.css">
<link rel="icon" type="image/png" href="images/favicon.ico">
<title>Some Title</title>
</head>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.