亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

怎么通過父容器,改變圖像顯示的大小,

<!doctype html>

<html>

<head>

? ? <meta charset="UTF-8">

<title>圖像</title>

<link rel="stylesheet" >

</head>

<body>

<div class="container">

? <div class="row">

? ? <div class="col-sm-4">

? ? ? <img? ?alt="140x140" src="http://placehold.it/140x140">

? ? ? ? <div>默認圖片</div>

? ? </div>

? ? <div class="col-sm-4">

? ? ? <img? class="img-rounded" alt="140x140" src="http://placehold.it/140x140">?

? ? ? ? <div>圓角圖片</div>

? ? </div>

? ? <div class="col-sm-4">

? ? ? <img? class="img-circle" alt="140x140" src="http://placehold.it/140x140">

? ? ? ? <div>圓形圖片</div>

? ? </div>

? ? ? <div class="row">

? ? ? ? <div class="col-sm-6">

? ? ? ? ? <img? class="img-thumbnail" alt="140x140" src="http://placehold.it/140x140">?

? ? ? ? ? ? <div>縮略圖</div>

? ? ? ? </div>

? ? ? ? <div class="col-sm-6" style="width: 1000px;height: 1000px;">? ? //我在這里都加了父容器的大小,但是感覺圖像大小沒變化啊????

? ? ? ? ? <img? class="img-responsive" alt="140x140" src="http://placehold.it/140x140" />?

? ? ? ? ? <div>響應式圖片</div>

? ? ? ? </div>

? ? ? </div>

? </div>

</div>?

</body>

</html>


正在回答

1 回答

看看你引入的CSS文件生效沒? 查看圖片元素看看.img-responsive這個class有沒有css屬性

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

怎么通過父容器,改變圖像顯示的大小,

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號