gpt4 book ai didi

twitter-bootstrap - Bootstrap 3 中的图像没有响应

转载 作者:行者123 更新时间:2023-12-04 09:00:56 25 4
gpt4 key购买 nike

您能否看一下以下代码并告诉我为什么图像在 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>

我在 Bootstrap 2.3 上对其进行了测试,它运行良好,谢谢

最佳答案

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

<img src="img/header.png" class="img-responsive" alt="DayCare" />

关于twitter-bootstrap - Bootstrap 3 中的图像没有响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19005924/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com