Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css Ruby:网页的计算样式_Css_Ruby_Hpricot - Fatal编程技术网

Css Ruby:网页的计算样式

Css Ruby:网页的计算样式,css,ruby,hpricot,Css,Ruby,Hpricot,我使用Hpricot解析html页面,但需要获得每个元素的计算样式。例如,如果我有一个h1hpricot元素,并且页面的外部CSS有一个为h1定义的背景图像,那么我如何才能找出背景图像是什么 有什么可以帮你的吗

我使用Hpricot解析html页面,但需要获得每个元素的计算样式。例如,如果我有一个h1hpricot元素,并且页面的外部CSS有一个为h1定义的背景图像,那么我如何才能找出背景图像是什么

有什么可以帮你的吗