Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

New Post: Getting Style Attributes

$
0
0

Simple soution is to:

1. find the element

2. find the style attribute

3. do a string split of the attribute value on ';' (semicolon) -> array

4. iterate the array, splitting each item on ':' (colon)

That will give you access to each style attribute and its value as strings.


Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>