ComputedStyleDeclaration

ComputedStyleDeclaration

ภาพรวม

ComputedStyleDeclaration เป็นคลาสใน Aspose.Html FOSS สำหรับ Python.

การประกาศสไตล์ที่แก้ไขแล้วแบบอ่านอย่างเดียวสำหรับองค์ประกอบหนึ่ง.

คลาสนี้ให้ 3 วิธีสำหรับทำงานกับวัตถุ ComputedStyleDeclaration ในโปรแกรม Python. วิธีที่มีให้รวมถึง: __init__, get_property_value, item. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้โดยแอปพลิเคชัน Python ใด ๆ หลังจากติดตั้งแพคเกจ Aspose.Html FOSS สำหรับ Python package. คุณสมบัติ: length.

คุณสมบัติ

ชื่อประเภทการเข้าถึงคำอธิบาย
lengthintอ่านจำนวนคุณสมบัติที่แก้ไขแล้ว.

วิธีการ

ลายเซ็นคำอธิบาย
__init__(properties: dict[str, str])Calls init(properties) บนอินสแตนซ์ ComputedStyleDeclaration นี้.
item(index: int) → `strNone`
get_property_value(name: str) → strคืนค่าคุณสมบัติที่แก้ไขแล้วหรือ '' หากไม่มี.

ดูเพิ่มเติม

 ภาษาไทย