1. 程式人生 > >網頁中如何嵌入天氣預報

網頁中如何嵌入天氣預報

1、新浪城市天氣預報
效果:
<IFRAME src="http://www.sina.com.cn/iframe/2006/weather/610101.html" frameBorder=0 width=100 scrolling=no height=38 algin="center"></IFRAME>
程式碼:
<iframe src="http://www.sina.com.cn/iframe/2006/weather/610101.html" width="100" height="38" scrolling="no" frameborder="0" algin="center" ></iframe>

2、騰訊城市天氣預報
效果:
<IFRAME src="http://weather.qq.com/inc/ss186.htm" frameBorder=0 width=200 scrolling=no height=400></IFRAME>
程式碼:
<iframe src="http://weather.qq.com/inc/ss186.htm" width="200" height="400" scrolling="no" frameborder="0"></iframe>

3、騰訊全國省會城市3日天氣預報
效果:
<IFRAME id=ifm1 align=center marginWidth=0 marginHeight=0 src="

http://weather.qq.com/24.htm" frameBorder=0 width=405 scrolling=no height=332></IFRAME>
程式碼:
<IFRAME id=ifm1 align=center marginWidth=0 marginHeight=0 src="http://weather.qq.com/24.htm" frameBorder=0 width=405 scrolling=no height=332></IFRAME>

4、天氣線上省市天氣預報
效果:

5、265當前城市天氣預報(隨訪問者IP變化)
效果:
<IFRAME border=0 marginWidth=0 marginHeight=0 src="

http://weather.265.com/weather.htm" frameBorder=no width=168 scrolling=no height=54></IFRAME>
程式碼:
<iframe src="http://weather.265.com/weather.htm" width="168" height="54" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
6、中國天氣城市天氣預報
效果:<IFRAME marginWidth=0 marginHeight=0 src="http://m.weather.com.cn/m/p10/weather1.htm" frameBorder=0 width=250 scrolling=no height=110></IFRAME>
程式碼:
<iframe src="http://m.weather.com.cn/m/p10/weather1.htm" width="250" height="110" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="No"></iframe>