-1
我指示創建一個旅遊網站。該網站只能是包含酒店,汽車和航空公司菜單的標題。提供的酒店內容來自另一個網頁。現在我的問題是,我可以把整個外部網頁(https://brands.datahc.com/?a_aid=143748&brandid=422829&languageCode=EN) 放在我的網站上嗎?Joomla在我的網站上放置一個外部網頁
我已經嘗試了幾次iframe。但我總是得到我想要避免的滾動條。
我指示創建一個旅遊網站。該網站只能是包含酒店,汽車和航空公司菜單的標題。提供的酒店內容來自另一個網頁。現在我的問題是,我可以把整個外部網頁(https://brands.datahc.com/?a_aid=143748&brandid=422829&languageCode=EN) 放在我的網站上嗎?Joomla在我的網站上放置一個外部網頁
我已經嘗試了幾次iframe。但我總是得到我想要避免的滾動條。
也許如果您嘗試使用PHP函數file_get_contents
<?php
$brands = file_get_contents('https://brands.datahc.com/?a_aid=143748&brandid=422829&languageCode=EN');
echo $brands; ?>
或者你可以SE IFRAME沒有滾動條,如本JSFiddle
HTML:
<iframe src="https://brands.datahc.com/a_aid=143748&brandid=422829&languageCode=EN" height="100%"></iframe>
CSS:
body, html { width:100% ;
height:100% ;
overflow:hidden ;
}
iframe { width:100% ; // set your width here
height:100% ;
border:none ;
}
使用curl獲取網站內容並創建joomla插件以顯示在主網站上。 –