开发者

Ruby: Computed Style for a webpage

开发者 https://www.devze.com 2023-01-04 08:12 出处:网络
I\'m using Hpricot to parse an html page, but need to get the computed styles for each element.F开发者_开发问答or example, if I have an h1 Hpricot element and the external CSS for the page has a backg

I'm using Hpricot to parse an html page, but need to get the computed styles for each element. F开发者_开发问答or example, if I have an h1 Hpricot element and the external CSS for the page has a background-image defined for h1's, how can I find out what the background-image is?


may be Selenium framework can help you?

0

精彩评论

暂无评论...
验证码 换一张
取 消