官网

https://cj.weather.com.cn/plugin/standard

选择自定义插件—>自定义样式——>生成代码,然后会生成这样一段代码

代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<div id="weather-v2-plugin-standard"></div>
<script>
WIDGET = {
CONFIG: {
"layout": 2,
"width": "230",
"height": "270",
"background": 5,
"dataColor": "4A4A4A",
"borderRadius": 5,
"key": "WXnNsJZg8e"
}
}
</script>
<script src="https://apip.weatherdt.com/standard/static/js/weather-standard-common.js?v=2.0"></script>

效果

简约

标准