效果预览:
插件代码:
<iframe scrolling="no" src="https://tianqiapi.com/api.php?style=tx&skin=pitaya" frameborder="0" width="100%" height="30" allowtransparency="true"></iframe>
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
style | String | 否 | 展示样式 |
skin | String | 否 | 图标风格,左侧小图标 |
cityid | String | 否 | 城市编号 详见接口 http://www.tianqiapi.com/?action=v1 |
city | String | 否 | 城市名称 如: 海淀,青岛,大连 (不要带市和区) 默认自适应所在城市 |
ip | String | 否 | 当前IP地址天气 |
align | String | 否 | 显示位置 取值: left,center,right |
paddingtop | Int | 否 | 上边距 |
paddingleft | Int | 否 | 左边距 |
fontsize | Int | 否 | 字体大小 |
color | String | 否 | 文字颜色; 十六进制码, 不带#, 形如: FF0000 |