twitter-bootstrap HTML5 Boilerplate 和 Twitter Bootstrap
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15453299/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
HTML5 Boilerplate and Twitter Bootstrap
提问by DextrousDave
I have read various questions answered on Stack about Twitter Bootstrap and HTML5 boilerplate.
我已经阅读了有关 Twitter Bootstrap 和 HTML5 样板的 Stack 上回答的各种问题。
I do know the following:
我知道以下几点:
- Bootstrap and H5BP are not equivalent and are used for different purposes
- I know what Bootstrap is used for, I use it every day - It is a front-end framework, CSS and JS ready-to-use.Just apply the right classes to your selectors/elements and Bootstrap does everything for you. They have extensive support documentation on their website where you can see what they have to offer inside the framework and how to implement it...
- You can combine the powers of the two by using initializr
- H5BP is a template...um thats about it...
- Bootstrap 和 H5BP 不是等价的,用于不同的目的
- 我知道 Bootstrap 的用途,我每天都在使用它 - 它是一个前端框架、CSS 和 JS 随时可用。只需将正确的类应用到您的选择器/元素,Bootstrap 会为您做一切。他们的网站上有大量的支持文档,您可以在其中查看他们在框架内提供的内容以及如何实现它...
- 您可以使用initializr结合两者的力量
- H5BP 是一个模板……嗯,就是这样……
But what I don't know yet, is the following:
但我还不知道的是:
- What the heck is H5BP used for? When visiting their website they only give you the source files and that's it(oh yes, and a video). What are the benefits of using it and why would you want to use it alongside Bootstrap for example?
- H5BP 到底是干什么用的?当访问他们的网站时,他们只给你源文件,仅此而已(哦,是的,还有一个视频)。例如,使用它有什么好处,为什么要与 Bootstrap 一起使用?
采纳答案by net.uk.sweet
You're exactly right, it is a template. It's a template which brings together a set of best practices for developing HTML5 websites. You don't have to use it but if you do you can rest assured that you are building on a solid foundation which has been developed and honed by top developers over the years. In the words of Paul Irish, one of the principle developers of the project:
你说得对,它是一个模板。它是一个模板,汇集了一组用于开发 HTML5 网站的最佳实践。您不必使用它,但如果您使用它,您可以放心,您正在建立一个坚实的基础,该基础已由顶级开发人员多年来开发和磨练。用该项目的主要开发人员之一 Paul Irish 的话来说:
“It's essentially a good starting template of html and css and a folder structure that works., but baked into it is years of best practices from front-end development professionals.”
“它本质上是一个很好的 html 和 css 起始模板以及一个有效的文件夹结构。但融入其中的是来自前端开发专业人士多年的最佳实践。”
I would suggest downloading the fully commented version of the boilerplate and reading through the code to give yourself an idea of the thought which has gone into it and the cases it handles. (See also this articlewhich highlights code snippets from the boilerplate which you should be using on your site). These should help you decide whether you want to use it as a starting point for your project or not.
我建议下载样板的完整注释版本并通读代码,让自己了解其中的想法及其处理的案例。(另请参阅这篇文章,其中突出显示了您应该在您的网站上使用的样板代码片段)。这些应该可以帮助您决定是否要将其用作项目的起点。
The HTML5bp initializreven includes a bootstrap option, so it couldn't really be any easier!
该HTML5bp initializr甚至还包括一个引导选项,因此它不能真正有任何容易!

