Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS

CSS overflow: visible


แสดงเนื้อหาที่ล้น (ค่าเริ่มต้น)

overflow: visible ไม่ตัดเนื้อหา เนื้อหาจะล้นออกมานอกกล่อง นี่คือค่าเริ่มต้น

ตัวอย่าง

<!DOCTYPE html>
<html>
<head>
  <style>
    div {
      background-color: orange;
      width: 250px;
      height: 30px;
      border: 2px solid blue;
      overflow: visible;
    }
  </style>
</head>
<body>
  <h1>Heading</h1>
  <div>Overflow property used here...</div>
</body>
</html>