我使用簡單的HTML DOM從網站獲取內容。但是某些圖像不會顯示,因爲它們被設置爲來自外部的後向圖像,所以我也調用了它。簡單的HTML DOM css
然而,圖像沒有完整的路徑。
<style>
div.spriteImgSmall { background: url(/images/css_sprites/film_sprites/smallimages_sprite.jpg); }
div.spriteImgSmall_17826 { background-position: -0px -0px; width: 86px; height: 64px; }
</style>
沒有頭部或身體標籤,因爲這是Facebook應用程序的一部分。我怎樣才能使用簡單的HTML DOM來添加基礎url到路徑?
如果它們是相對路徑,爲什麼不解析你所得到的url? – yoda 2010-12-10 21:08:11
我對此很陌生,對不起。我不明白,你會有一些示例代碼? – Keith 2010-12-11 02:16:23