Answer the question
In order to leave comments, you need to log in
How to parse an element along with its styles using phpQuery?
Hello! For the first time I am writing a site parser on phpQuery and I ran into a problem - I can’t pull out a specific element along with styles. First of all, the task is to get pictures from the background element.
The site I want to spar from: https://grastin.ru/samovyvz/moscow.html
The necessary dements are icons with fitting and payment by cards:
They have something like this code:
.pickup_address_services_fitting {
display: inline-block;
vertical-align: top;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAYCAMAAAC/Wk/yAAAAjVBMV…AvhhC++Y6JixC1AP5fuP7zjdXc/xOlIidT7tv7Prwjox8sEA/8J2OSBgAAAABJRU5ErkJggg==) no-repeat 50% 0;
padding: 24px 0 0;
margin: 0 10px 0 0;
min-width: 40px;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question