တည်ဆောက်ခြင်း - အော်ချမ်းသွားစွာ ပုံများစုစည်း
အင်္ဂလိပ်စကား ကို အော်ချမ်းသွားစွာ ပုံများစုစည်းထားခြင်းကို တည်ဆောက်ပါ
ပုံများစုစည်း
ဘတ်သျှန်းလိပ်အရွယ်ကို လျှပ်ပေးပါ အပြန်လည်း အပြောင်းအလဲကို ကြည့်ပါ
ပုံများစုစည်းထားခြင်းကိုဖွဲ့စည်းပါ
ပထမဆုံးအပိုင်း - ဟောင်းကွန်းထည်တင်ခြင်း:
<div class="responsive"> <div class="gallery"> <a target="_blank" href="img_5terre.jpg"> <img src="img_5terre.jpg" alt="Cinque Terre"> </a> <div class="desc">ပုံ၏ စကားလုံး ထပ်ထည့်ပါ</div> </div> </div> <div class="responsive"> <div class="gallery"> <a target="_blank" href="img_forest.jpg"> <img src="img_forest.jpg" alt="Forest"> </a> <div class="desc">ပုံ၏ စကားလုံး ထပ်ထည့်ပါ</div> </div> </div> <div class="responsive"> <div class="gallery"> <a target="_blank" href="img_lights.jpg"> <img src="img_lights.jpg" alt="Northern Lights"> </a> <div class="desc">ပုံ၏ စကားလုံး ထပ်ထည့်ပါ</div> </div> </div> <div class="responsive"> <div class="gallery"> <a target="_blank" href="img_mountains.jpg"> <img src="img_mountains.jpg" alt="Mountains"> </a> <div class="desc">ပုံ၏ စကားလုံး ထပ်ထည့်ပါ</div> </div> </div> <div class="clearfix"></div>
ဒုတိယပွဲ - ပုံစံခွဲသင်္ကာန်း ထပ်ထည့်ပါ
ဒါမှာ နည်းပါးများ သည် ပုံကွဲပြား မျိုးမျိုး ကို အချိန်ကြား လွှတ်တင်ကြရမည်ဖြစ် သည်။ အချိန်ကြား အရွယ်အစား အမျိုးမျိုး အတွက် အချိန်ကြား ပြောင်းလဲကြောင်း ပြောဆိုထားသည်။ အချိန်ကြား အရွယ်အစား အမျိုးမျိုး အတွက် ပုံကွဲပြား အချိန်ကြား လွှတ်တင်ကြရမည်ဖြစ် သည်။
div.gallery { border: 1px solid #ccc; } div.gallery:hover { border: 1px solid #777; } div.gallery img { width: 100%; height: auto; } div.desc { padding: 15px; text-align: center; } * { box-sizing: border-box; } .responsive { padding: 0 6px; float: left; width: 24.99999%; } @media only screen and (max-width: 700px) { .responsive { width: 49.99999%; margin: 6px 0; } } @media only screen and (max-width: 500px) { .responsive { width: 100%; } } .clearfix:after { content: ""; display: table; clear: both; }
ဆက်စပ်ပုံငွေ့
ပြဋ္ဌာန်းမှု:HTML 图像
ပြဋ္ဌာန်းမှု:CSS 设置图像样式