ปรับขนาดรูปแบบคุณสมบัติ
ตัวอย่าง
ทำให้ <div> องค์ประกอบปรับขนาดได้:
document.getElementById("myDIV").style.resize = "both";
ความหมายและการใช้งาน
คุณสมบัติการปรับขนาดระบุว่าองค์ประกอบสามารถปรับขนาดได้โดยผู้ใช้หรือไม่
หมายเหตุ:คุณสมบัติการปรับขนาดใช้กับองค์ประกอบที่มีค่าโอเวอร์โฟลว์ที่คำนวณเป็นอย่างอื่นที่ไม่ใช่ "มองเห็นได้"
รองรับเบราว์เซอร์
Property | |||||
---|---|---|---|---|---|
resize | Yes | 79.0 | Yes | Yes | 15.0 |
ไวยากรณ์
ส่งคืนคุณสมบัติการปรับขนาด:
object.style.resize
ตั้งค่าคุณสมบัติการปรับขนาด:
object.style.resize = "none|both|horizontal|vertical|initial|inherit"
มูลค่าทรัพย์สิน
Value | Description |
---|---|
none | Default value. The user cannot resize the element |
both | The user can adjust both the height and the width of the element |
horizontal | The user can adjust the width of the element |
vertical | The user can adjust the height of the element |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
รายละเอียดทางเทคนิค
ค่าเริ่มต้น: | ไม่มี |
---|---|
คืนมูลค่า: | สตริงที่แสดงถึงคุณสมบัติการปรับขนาดขององค์ประกอบ |
เวอร์ชัน CSS | CSS3 |
หน้าที่เกี่ยวข้อง
การอ้างอิง CSS: ปรับขนาดคุณสมบัติ
❮ สไตล์วัตถุ