【发布时间】:2014-05-19 21:14:58
【问题描述】:
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<script src="http://code.jquery.com/jquery.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class="row">
<div class="span4">
Image:<img src="Tulips.jpg" ></img>
</div>
<div class="span4 ">
<table class="table borderless">
<tr>
<td><b>Test image</b></td>
</tr>
<tr>
<td>testing testing</td>
</tr>
<tr>
<td>120$</td>
</tr>
<tr>
<td>
<button class="btn btn-primary" type="button">Default button</button>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
我的输出1:
当我使用手机测试它的响应能力时,我得到一个 output2:
任何人都可以帮助我使用我发布的代码使其看起来像 output1 即使对于移动视图...谢谢...
【问题讨论】:
-
我正在使用 twitter-bootstrap...我不需要编写 css....我只需要加载我需要应用样式的类...我是新手... .所以我已经发布了我尝试过的代码并询问我需要什么......
-
使用 boostap3 而不是 bs2,bs3 是移动优先的,不需要你 bootsrap-responsive.css 示例:getbootstrap.com
标签: html css twitter-bootstrap twitter-bootstrap-3