<!doctype html> <html> <head> <meta charset="utf-8"> <mata name="viewport" contennt="width=device-width,initial-scale=1.0"> <title>Bootstrap_Project</title> <link href="../bootstrap-3.3.5/dist/css/bootstrap.css" rel="stylesheet"> </head> <body> <div class="container"> <h1 class="page-header">布局<small>毕设项目</small></h1> <p>hello world</p> <div class="row"> <div class="span4"> <h2 class="page-header">区块1</h2> <p> 这个是一个test</p> </div> <div class="span4"> <h2 class="page-header">区块2</h2> <p> 这个是一个test</p> </div> <div class="span4"> <h2 class="page-header">区块3</h2> <p> 这个是一个test</p> </div> </div> </div> <script src="../bootstrap-3.3.5/dist/js/bootstrap.js"></script> <script src="../bootstrap-3.3.5/dist/js/jquery-2.2.3.min.js"></script> </body> </html>
初学html代码,按照教程使用了div class=span4,因为整个页面是12span,试图用span4将3个标题栏分成3个竖向排列栏,然而保存刷新在搜狗和chrome浏览器打开之后发现并没有效果,使用的是bootstrap,求大神帮我分析下错在哪,thx!图片所示为预期图和实际图
立即学习“前端免费学习笔记(深入)”;
<!doctype html> <html> <head> <meta charset="utf-8"> <mata name="viewport" contennt="width=device-width,initial-scale=1.0"> <title>Bootstrap_Project</title> <link href="../bootstrap-3.3.5/dist/css/bootstrap.css" rel="stylesheet"> </head> <body> <div class="container"> <h1 class="page-header">布局<small>毕设项目</small></h1> <p>hello world</p> <div class="row"> <div class="span4"> <h2 class="page-header">区块1</h2> <p> 这个是一个test</p> </div> <div class="span4"> <h2 class="page-header">区块2</h2> <p> 这个是一个test</p> </div> <div class="span4"> <h2 class="page-header">区块3</h2> <p> 这个是一个test</p> </div> </div> </div> <script src="../bootstrap-3.3.5/dist/js/bootstrap.js"></script> <script src="../bootstrap-3.3.5/dist/js/jquery-2.2.3.min.js"></script> </body> </html>
初学html代码,按照教程使用了div class=span4,因为整个页面是12span,试图用span4将3个标题栏分成3个竖向排列栏,然而保存刷新在搜狗和chrome浏览器打开之后发现并没有效果,使用的是bootstrap,求大神帮我分析下错在哪,thx!图片所示为预期图和实际图
立即学习“前端免费学习笔记(深入)”;
css/bootstrap.css" rel="stylesheet">
你引进的是bootstrap-3.3.5,但是却用bootstrap2的写法,肯定没效果啦,
http://v3.bootcss.com/css/bootstrap3的文档在这里,你按照这个来写吧
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号