图像在Bootstrap 3中没有响应

Mon*_*der 3 twitter-bootstrap twitter-bootstrap-3

您能否看一下以下代码,让我知道为什么图像在Bootstrap 3中没有响应?

<!DOCTYPE html>
<html>
<head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css">
<!--My Style -->
<link rel="stylesheet" href="css/Style.css">
</head>
<body>
<div class="container">
<div class="rainbow">
<img src="img/header.png" alt="DayCare" />
</div>
</div>

<!-- Latest compiled and minified JavaScript -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

我在Bootstrap 2.3上测试它,它工作正常,谢谢

Zim*_*Zim 7

将'img-responsive`类添加到img ...

<img src="img/header.png" class="img-responsive" alt="DayCare" />
Run Code Online (Sandbox Code Playgroud)