<iframe allowtransparency="true" id="tianqi" frameborder="0" width="300" height="100" scrolling="no" src=""></iframe>
<script>
//天氣預報
window.onload = function() {
setTimeout("loadweather()", 500);
}
function loadweather(url) {
var url = "http://tianqi.2345.com/plugin/widget/index.htm?s=3&z=3&t=1&v=0&d=3&bd=0&k=&f=&q=1&e=1&a=1&c=54511&w=180&h=36&align=left";
$("#tianqi").attr("src", url);
}
</script>
效果圖
<iframe scrolling="no" src="https://tianqiapi.com/api.php?style=tw&skin=pitaya" frameborder="0" width="300" height="500" allowtransparency="true"></iframe>
效果圖
<div class="weather">
<iframe width="455" scrolling="no" height="75" frameborder="0" allowtransparency="true"
src="http://i.tianqi.com/index.php?c=code&id=38&icon=1&num=2&align=left">
</iframe>
</div>
效果圖