Twitter bootstrap 引导如何根据图像使文本响应

Twitter bootstrap 引导如何根据图像使文本响应,twitter-bootstrap,css,twitter-bootstrap-3,Twitter Bootstrap,Css,Twitter Bootstrap 3,我的场景是这样的:容器中有一些文本和图像。它们都能以不同的屏幕大小正确显示 然而,当我在桌面上查看它时,它并没有显示到我预期的结果 我想要实现的是类似于ScreenShot的东西。有人知道怎么做吗 实际上,bootstrap应该自己完成这项工作,但代码如下: 当然,最大宽度应根据您的需要进行更改 .集装箱{ 宽度:100%; 最大宽度:500px; } .集装箱img{ 最大宽度:100%; 高度:自动; } 引导示例 p、 实心{边框样式:实心;} 实心边框。实心边框。实心边框。实心边框。实

我的场景是这样的:容器中有一些文本和图像。它们都能以不同的屏幕大小正确显示

然而,当我在桌面上查看它时,它并没有显示到我预期的结果

我想要实现的是类似于ScreenShot的东西。有人知道怎么做吗


实际上,bootstrap应该自己完成这项工作,但代码如下:

当然,最大宽度应根据您的需要进行更改

.集装箱{ 宽度:100%; 最大宽度:500px; } .集装箱img{ 最大宽度:100%; 高度:自动; } 引导示例 p、 实心{边框样式:实心;}

实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框


试试这个代码。这也适用于响应性测试

.solid,.img响应{ 保证金:0自动; 显示:表格; } 引导示例 p、 实心{边框样式:实心;}

实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框。实心边框

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Bootstrap Example</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>

<style>
p.solid {border-style: solid;}
</style>
<body>

<div class="container">
<p class="solid">A solid border.A solid border.A solid border.A solid border.A solid border.A solid border.A solid border.A solid border.A solid border.A solid border.A solid border.A solid border.A solid border.A solid border.A solid border.A solid border.</p>

<p align="center"><img class="img-responsive" src="img/20161014_220509_073.jpg" /> </p>
</div>

</body>
</html>