CSSPropertyRule
CSSPropertyRule
Panoramica
CSSPropertyRule è una classe in Aspose.Html FOSS per Python. Eredita da: CSSRule.
Stub di regola CSS @property (CSS Proprietà e Valori API §3).
Questa classe fornisce 1 metodo per lavorare con oggetti CSSPropertyRule nei programmi Python. I metodi disponibili includono: __init__. Tutti i membri pubblici sono accessibili a qualsiasi applicazione Python dopo aver installato il pacchetto Aspose.Html FOSS per Python. Proprietà: CHARSET_RULE, COUNTER_STYLE_RULE, FONT_FACE_RULE, FONT_FEATURE_VALUES_RULE, IMPORT_RULE, KEYFRAMES_RULE, e altre 18.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
type | int | Lettura | Restituisci PROPERTY_RULE (16). |
name | str | Lettura | Il nome della proprietà personalizzata (ad es. |
syntax | str | Lettura | La stringa descrittore della sintassi. |
inherits | str | Lettura | 'true' o 'false' (stringa, non bool). |
initial_value | str | Lettura | La stringa descrittore del valore iniziale. |
css_text | str | Lettura | Testo della regola @property ricostruito. |
PROPERTY_RULE | int | Lettura | Ottiene la regola della proprietà. |
UNKNOWN_RULE | int | Lettura | Ottiene la regola sconosciuta. |
STYLE_RULE | int | Lettura | Ottiene la regola di stile. |
CHARSET_RULE | int | Lettura | Ottiene la regola charset. |
IMPORT_RULE | int | Lettura | Ottiene la regola di importazione. |
MEDIA_RULE | int | Lettura | Ottiene la regola media. |
FONT_FACE_RULE | int | Lettura | Ottiene la regola font face. |
PAGE_RULE | int | Lettura | Ottiene la regola della pagina. |
KEYFRAMES_RULE | int | Lettura | Ottiene la regola dei keyframes. |
KEYFRAME_RULE | int | Lettura | Ottiene la regola keyframe. |
NAMESPACE_RULE | int | Lettura | Ottiene la regola di spazio dei nomi. |
COUNTER_STYLE_RULE | int | Lettura | Ottiene la regola di stile del contatore. |
SUPPORTS_RULE | int | Lettura | Ottiene la regola supports. |
FONT_FEATURE_VALUES_RULE | int | Lettura | Ottiene la regola dei valori delle funzionalità dei caratteri. |
LAYER_BLOCK_RULE | int | Lettura | Ottiene la regola del blocco di livello. |
LAYER_STATEMENT_RULE | int | Lettura | Ottiene la regola dell’istruzione layer. |
parent_style_sheet | `CSSStyleSheet | None` | Lettura |
parent_rule | `CSSRule | None` | Lettura |
Metodi
| Firma | Descrizione |
|---|---|
__init__(name: str, syntax: str, inherits: str, initial_value: str) | Calls init(name, syntax, inherits, initial_value) su questa istanza di CSSPropertyRule. |