Answer the question
In order to leave comments, you need to log in
PHP Simple HTML DOM Parser how to get background?
When parsing a page, the h1 header has a style that sets the background image. The style itself on each page is different and is written in the header. Here is an example
<style type="text/css">
#Header h1 {width:287px; height:56px; background:url(http://www.zappos.com/boutiques/183/franco-sarto_head050214.jpg); n;}
</style>
Answer the question
In order to leave comments, you need to log in
Pull out a regular expression.. Or there are special CSS parsers of the same type..
Simple HTML DOM Parser is geared more towards parsing ... than the above.
PHP Simple HTML DOM Parser, as I remember, does not process the content of styles.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question