Merhaba Ben div bulunuyor satır içi stilleri vardır ve hiçbir sınıf veya id burada kodu olan bir hava web sitesinde bir ekran kazıma yapıyorum:
<div class="TodaysForecastContainer">
<div class="TodaysForecastContainerInner">
<div style="font-size:12px;"><u>This morning</u></div>
<div style="position:absolute;top:17px;left:3px;">
<a href="forecastPublicExtended.asp#Period0" target="_blank">
<img src="./images/wimages/b_cloudy.gif" height="50px" width="50px" alt="weather image">
</a> </div>
<div style="position:absolute; top:25px; left:57px; text-align:left; height:47px; width:90px;">
Sunny Breaks </div>
</div>
<div class="TodaysForecastContainerInner">
<div style="font-size:12px;"><u>This afternoon</u></div>
<div style="position:absolute;top:17px;left:3px;">
<a href="forecastPublicExtended.asp#Period0" target="_blank">
<img src="./images/wimages/b_pcloudy.gif" height="50px" width="50px" alt="weather image">
</a> </div>
<div style="position:absolute; top:25px; left:57px; text-align:left; height:47px; width:90px;">
Mix of Sun and Cloud </div>
</div>
Sorun mutlak konum satır içi stil ve onlar sınıf veya id hayır yok, ben "Bu sabah" bir sınıf adı eklemek ve div satır içi stil kaldırmak olabilir umuyordum, div görüntüyü içeren ve ayrıca ile bağlantısını ve div çıkarın yaklaşık 4 tahminlerini beri Tanımlaması (örn. Sunny Tatili) de TodaysForecastContainerInner tüm değişiyor. : benzer yapma
<div class="day>This morning</div><div class="thumbnail"><img src="sample.jpg"></div><div class="description">Sunny Breaks</div>
Ben kullanıyordum:
foreach($html->find('.TodaysForecastContainerInner div') as $e)
echo $e->innertext . '<br>';
which removes all divs living me with u and img tag, I just can't style the div with discription I use img and u tag to style the other two divs, I'm just a beginner at php I hope someone could give me advice thank you so much.