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

CSS ล้น:มองเห็นได้


ในคุณสมบัติโอเวอร์โฟลว์ CSS ที่มีค่ามองเห็นได้ โอเวอร์โฟลว์จะไม่ถูกตัดออก นี่คือค่าเริ่มต้น คุณสามารถลองเรียกใช้โค้ดต่อไปนี้เพื่อใช้งาน CSS overflow:มองเห็นได้ คุณสมบัติ:

ตัวอย่าง

<!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. This is a demo text to show the working of CSS overflow: visible.</div>
   </body>
</html>

ผลลัพธ์

CSS ล้น:มองเห็นได้