ComputedStyleDeclaration
ComputedStyleDeclaration
Gambaran Umum
ComputedStyleDeclaration adalah kelas dalam Aspose.Html FOSS untuk Python.
Deklarasi gaya yang terurai hanya-baca untuk sebuah elemen.
Kelas ini menyediakan 3 metode untuk bekerja dengan objek ComputedStyleDeclaration dalam program Python. Metode yang tersedia meliputi: __init__, get_property_value, item. Semua anggota publik dapat diakses oleh aplikasi Python apa pun setelah menginstal paket Aspose.Html FOSS untuk Python. Properti: length.
Properti
| Nama | Jenis | Akses | Deskripsi |
|---|---|---|---|
length | int | Baca | Jumlah properti yang diselesaikan. |
Metode
| Tanda tangan | Deskripsi |
|---|---|
__init__(properties: dict[str, str]) | Calls init(properti) pada instance ComputedStyleDeclaration ini. |
item(index: int) → `str | None` |
get_property_value(name: str) → str | Kembalikan nilai properti yang telah diselesaikan atau '' jika tidak ada. |