blockly > utils > style > getComputedStyle
Funzione utils.style.getComputedStyle()
Recupera un valore di stile calcolato di un nodo. Restituisce una stringa vuota se la proprietà richiesta è SVG e non è stata impostata esplicitamente (firefox e webkit).
Copiato da goog.style.getComputedStyle di Closure
Firma:
export declare function getComputedStyle(element: Element, property: string): string;
Parametri
Parametro | Tipo | Descrizione |
---|---|---|
elemento | Elemento | Elemento a cui applicare lo stile. |
proprietà | stringa | Proprietà da ottenere (caso cammello). |
Resi:
stringa
Valore dello stile.