ComputedStyleDeclaration
ComputedStyleDeclaration
ภาพรวม
ComputedStyleDeclaration เป็นคลาสใน Aspose.Html FOSS สำหรับ Python.
การประกาศสไตล์ที่แก้ไขแล้วแบบอ่านอย่างเดียวสำหรับองค์ประกอบหนึ่ง.
คลาสนี้ให้ 3 วิธีสำหรับทำงานกับวัตถุ ComputedStyleDeclaration ในโปรแกรม Python. วิธีที่มีให้รวมถึง: __init__, get_property_value, item. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้โดยแอปพลิเคชัน Python ใด ๆ หลังจากติดตั้งแพคเกจ Aspose.Html FOSS สำหรับ Python package. คุณสมบัติ: length.
คุณสมบัติ
| ชื่อ | ประเภท | การเข้าถึง | คำอธิบาย |
|---|---|---|---|
length | int | อ่าน | จำนวนคุณสมบัติที่แก้ไขแล้ว. |
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
__init__(properties: dict[str, str]) | Calls init(properties) บนอินสแตนซ์ ComputedStyleDeclaration นี้. |
item(index: int) → `str | None` |
get_property_value(name: str) → str | คืนค่าคุณสมบัติที่แก้ไขแล้วหรือ '' หากไม่มี. |