【发布时间】:2017-06-28 07:48:26
【问题描述】:
所以我在 div 框中有一张图片。图像有 .img-responsive 但是如果我想让边框也响应,那么当我缩小屏幕尺寸时,边框和图像会按比例缩小。此外,框内的文本也应该响应收缩。如果有引导方法来做到这一点。也请告诉我。
div id="quote_box">
<p id="quote">
This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph.
</p>
</div>
而css是:
#quote_box{
background-image: url('parchment.jpg');
border: solid black;
border-radius:5px;
height:400px;
width:300px;
background-size:cover;
background-repeat: no-repeat;
box-shadow:20px 20px 10px;
display: block;
}
#quote {
margin:10%;
text-align:center;
font-size: 22px;
font-weight: bold;
font-family:Georgia;
color: black;
}
【问题讨论】:
-
你的 .img 响应在哪里?
-
您需要这样的东西吗? jsfiddle.net/d4ftjzrt/1
-
你在使用引导程序吗?
标签: html css twitter-bootstrap