缩略图本想水平排列却变成垂直排列了,请问什么原因?
本想这样:
却变成这样:
代码:
我这里是普通电脑屏幕,不是手机或平板。
却变成这样:
代码:
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<divnk rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.2/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-3"><a href="#" class="thumbnail"><img src="http://placehold.it/171x180" alt=""></a></div>
<div class="col-md-3"><a href="#" class="thumbnail"><img src="http://placehold.it/171x180" alt=""></a></div>
<div class="col-md-3"><a href="#" class="thumbnail"><img src="http://placehold.it/171x180" alt=""></a></div>
<div class="col-md-3"><a href="#" class="thumbnail"><img src="http://placehold.it/171x180" alt=""></a></div>
</div>
</div>
<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
</body>
</html>
我这里是普通电脑屏幕,不是手机或平板。
找到原因了:
<divnk rel="stylesheet" href="http://cdn.bootcss.com/bootstr ... 6quot;>
应为:
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstr ... 6quot;>
<divnk rel="stylesheet" href="http://cdn.bootcss.com/bootstr ... 6quot;>
应为:
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstr ... 6quot;>