这里有很多与Bootstrap相关的问题。我看到很多人都在用它。所以我试着去研究它,我找到了官方的Bootstrap网站,但那里只有一个下载部分和几句话。没有什么能解释它是干什么用的……我只知道它是一个前端助手。我试图通过谷歌搜索一些东西,但没有找到具体的东西。我所找到的一切都与计算机科学的定义有关。
所以,我的问题是:
什么是Bootstrap ? 它的用途是什么,它如何帮助前端开发? 我还想了解更多细节。
这里有很多与Bootstrap相关的问题。我看到很多人都在用它。所以我试着去研究它,我找到了官方的Bootstrap网站,但那里只有一个下载部分和几句话。没有什么能解释它是干什么用的……我只知道它是一个前端助手。我试图通过谷歌搜索一些东西,但没有找到具体的东西。我所找到的一切都与计算机科学的定义有关。
所以,我的问题是:
什么是Bootstrap ? 它的用途是什么,它如何帮助前端开发? 我还想了解更多细节。
当前回答
Bootstrap是开源的HTML框架。几乎所有浏览器都兼容。基本上大屏浏览器的宽度是>992px和特大号1200px。因此,通过使用Bootstrap定义的类,我们可以调整屏幕分辨率,以显示从小手机到大屏幕的每个屏幕上的内容。我尽量简短地解释。 例如:
<div class="col-sm-3">....</div>
<div class="col-sm-9">....</div>
其他回答
Bootstrap是一个带有许多组件的HTML, CSS, JS框架,可以让您快速创建美丽而现代的网站或web应用程序。
以下网站包含示例、元素和可重用组件,您可以使用引导框架集成到您的项目中
bootsnipp.com
startbootstrap.com
bootdey.com
Bootstrap is an open-source Javascript framework developed by the team at Twitter. It is a combination of HTML, CSS, and Javascript code designed to help build user interface components. Bootstrap was also programmed to support both HTML5 and CSS3. Also it is called Front-end-framework. Bootstrap is a free collection of tools for creating a websites and web applications. It contains HTML and CSS-based design templates for typography, forms, buttons, navigation and other interface components, as well as optional JavaScript extensions. Some Reasons for programmers preferred Bootstrap Framework Easy to get started Great grid system Base styling for most HTML elements(Typography,Code,Tables,Forms,Buttons,Images,Icons) Extensive list of components Bundled Javascript plugins
摘自About Bootstrap Framework
据我所知,Bootstrap是一个定义良好的CSS。虽然使用Bootstrap,你也可以使用JavaScript, jQuery等。但主要的区别是,使用Bootstrap,您可以只调用类名,然后在HTML表单上获得输出。如。按钮的着色,文本的塑造,使用布局。对于所有这些,您不必编写CSS文件,而只需使用正确的类名来塑造您的HTML表单。
Bootstrap是开源的HTML框架。几乎所有浏览器都兼容。基本上大屏浏览器的宽度是>992px和特大号1200px。因此,通过使用Bootstrap定义的类,我们可以调整屏幕分辨率,以显示从小手机到大屏幕的每个屏幕上的内容。我尽量简短地解释。 例如:
<div class="col-sm-3">....</div>
<div class="col-sm-9">....</div>
简单地说,Bootstrap可以理解为一个前端web框架,它是由Twitter创建的,用于更快地创建设备响应式web应用程序。Bootstrap也可以主要理解为定义在其中的CSS类的集合,可以简单地直接使用。它利用CSS, javascript, jQuery等在后台为Bootstrap元素创建样式,效果和动作。
You might know that we use CSS for styling webpage elements and create classes and assign classes to webpage elements to apply the style to them. Bootstrap here makes the designing simpler since we only have to include Bootstrap files and mention Bootstrap's predefined class names for our webpage elements and they will be styled automatically through Bootstrap. Through this, we get rid of writing our own CSS classes to style webpage elements. Most importantly Bootstrap is designed in such a way that makes your website device responsive and that is the main purpose of it. Other alternates for Bootstrap could be - Foundation, Materialize etc. frameworks.
Bootstrap让你从编写大量的CSS代码中解脱出来,它也节省了你在设计网页上花费的时间。