说到布局,有人习惯使用div+css代码来,有人喜欢Dreamweaver 可视化布局。不管你是哪一种习惯都没关系,因为bootstrap都能满足你的需求。
注意了,这个功能只能是bootstrap2.x版本的专利了,bootstrap3.x的官方还没有升级,当然了,也不是说bootstrap3.x不能使用可视化布局,只是不能直接使用,需要通过标签转化,后面我会详细讲。
bootstrap的可视化布局设置
打开http://www.bootcss.com/p/layoutit/,然后拖动8 4到右边,则出现如下的效果图
一个两栏的页面布局,就在”拖“的过程中完成了,是不是很轻松呢?
下载代码
点击顶端的下载,则可以把布局好的html代码复制下来
<div class="container-fluid"> <div class="row-fluid"> <div class="span8"> </div> <div class="span4"> </div> </div> </div>
代码解释
Bootstrap默认的栅格系统为12列 ,形成一个940px宽的容器。对于简单的两列式布局,创建一个 .row 容器,并在容器中加入合适数量的 .span* 列即可。由于默认是12列的栅格,所有 .span* 列所跨越的栅格数之和最多是12(或者等于其父容器的栅格数)。
小结:下载的html代码,保存在html文件,用浏览器打开是无法看到布局效果的,需要在span标类中加上css背景色才能看到。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Linux new version
SublimeText3 Linux latest version
