![]() |
![]() ![]() |
![]() |
Windsurfer |
![]()
Post
#1
|
Group: Members Posts: 1 Joined: 14-October 22 Member No.: 28,587 ![]() |
I have a site and some pages have no values in the element.style but the other pages do.
What would be the reason for that ? |
Christian J |
![]()
Post
#2
|
. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 9,353 Joined: 10-August 06 Member No.: 7 ![]() |
Impossible to say without seeing the pages in question, but generally speaking it could depend on how the style properties were set to begin with:
"The style property is not useful for completely learning about the styles applied on the element, since it represents only the CSS declarations set in the element's inline style attribute, not those that come from style rules elsewhere, such as style rules in the <head> section, or external style sheets. To get the values of all CSS properties for an element you should use Window.getComputedStyle() instead." |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 25th March 2023 - 05:18 AM |