Dreamweaver中设置天气预报,需要插入属下代码:
<iframe src="http://www.weather.com.cn/weather/101190801.shtml "
width="245" height="110" marginwidth="0" marginheight="0" hspace="0" vspace="0"
frameborder="0" scrolling="no"></iframe>
那个连接链接到“中国天气”网。
需要其他城市的天气的时,就替换101190801这个字符串。比如我们搜索到上海,看见url是这样:http://www.weather.com.cn/weather/101020100.shtml
插入天气预报,效果如下:
参考资料:http://www.weather.com.cn/static/html/weather_cj.shtml#
本回答被网友采纳