โดย anuwat somsakul » 10/08/2018 11:35 am
ภาพ Polaroid คืออะไร
คือการจัดกรอบใส่รูปภาพ โดยต้นกำเนิดคือการ ถ่ายเป็นฟิล์มสำเร็จรูป ที่ถ่ายรูปออกมาแล้วทำปฎิกิริยาทางเคมี แล้วออกมาเป็นภาพ
แต่เรามี trip ของการทำภาพ Polaroid ใน CSS
Code สำหรับ ใช้แต่งภาพ Polaroid
โค้ด: เลือกทั้งหมด
<!DOCTYPE html>
<html>
<head>
<style>
body {margin:25px;}
div.polaroid {
width: 80%;
background-color: white;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
margin-bottom: 25px;
}
div.container {
text-align: center;
padding: 10px 20px;
}
</style>
</head>
<body>
<h2>Responsive Polaroid Images / Cards</h2>
<div class="polaroid">
<img src="img_5terre.jpg" alt="5 Terre" style="width:100%">
<div class="container">
<p>Cinque Terre</p>
</div>
</div>
<div class="polaroid">
<img src="lights600x400.jpg" alt="Norther Lights" style="width:100%">
<div class="container">
<p>Northern Lights</p>
</div>
</div>
</body>
</html>
ผลลัพธ์ที่ได้
- Selection_003.png (154.43 KiB) Viewed 3015 times
- Selection_001.png (300.02 KiB) Viewed 3015 times
ภาพ Polaroid คืออะไร
คือการจัดกรอบใส่รูปภาพ โดยต้นกำเนิดคือการ ถ่ายเป็นฟิล์มสำเร็จรูป ที่ถ่ายรูปออกมาแล้วทำปฎิกิริยาทางเคมี แล้วออกมาเป็นภาพ
แต่เรามี trip ของการทำภาพ Polaroid ใน CSS
Code สำหรับ ใช้แต่งภาพ Polaroid
[code]
<!DOCTYPE html>
<html>
<head>
<style>
body {margin:25px;}
div.polaroid {
width: 80%;
background-color: white;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
margin-bottom: 25px;
}
div.container {
text-align: center;
padding: 10px 20px;
}
</style>
</head>
<body>
<h2>Responsive Polaroid Images / Cards</h2>
<div class="polaroid">
<img src="img_5terre.jpg" alt="5 Terre" style="width:100%">
<div class="container">
<p>Cinque Terre</p>
</div>
</div>
<div class="polaroid">
<img src="lights600x400.jpg" alt="Norther Lights" style="width:100%">
<div class="container">
<p>Northern Lights</p>
</div>
</div>
</body>
</html>
[/code]
[b][color=#FF0000]
ผลลัพธ์ที่ได้[/color][/b]
[attachment=1]Selection_001.png[/attachment]
[attachment=0]Selection_003.png[/attachment]