center
UK['sentə] US[ˈsɛntɚ]
n.Center; hub; (team’s) center; central area
adj.Central, located in the middle; (in) the center
vt.Concentrate; make people gather at one point; center; center
vi.Center, have center, be placed In the center
block
英[blɒk] 美[blɑ:k]
n.block;<英> building, building;obstacle,obstacle
vt.block;block;restriction
Bootstrap center-block style syntax
Function: Set the element to display:block and display it in the center.
Bootstrap center-block style example
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>实例</h2> <div class="center-block" style="width:150px;background-color:#ccc;">该 div 显示在中间</div> </div> </body> </html>
Click the "Run instance" button to view the online instance