ben aracılığıyla onları alabilirsiniz:WebKit'te desteklenen tüm CSS özelliklerini nasıl alabilirim? Firefox, Opera ve IE yılında
>> for (k in document.body.style) console.log(k) -> cssText length parentRule getPropertyValue getPropertyCSSValue removeProperty getPropertyPriority setProperty item getPropertyShorthand isPropertyImplicit
Güncelleme: son WebKit does enumerate over CSS properties in HTMLElement.style aynı şekilde baştan WebKit olarak sonuçlar çok farklı oluyor
>> for (k in document.body.style) console.log(k) -> opacity background height textAlign . ... long list ... . pointerEvents
tarayıcılar yapar.
'document.body.style' yinelemek Javascript stili özelliklerini sağlar. document.defaultView.getComputedStyle (document.body, '') 'sadece CSS özelliklerine sahiptir. Örneğin. "backgroundAttachment" ve "background-attachment". –
'inherit', yüzde, text-bottom gibi olası tüm değerlerini elde etmenin herhangi bir yolu; her biri için. js kullanıyor olsa bile. –