您的位置:首页 > 其它

显示时间日期以及地区相关的天气情况插件

2016-12-22 16:08 477 查看
一个博客中看到一个比较好的功能,能够显示时间日期以及地区天气情况:



主要代码:

<div class="welcome-info" style="margin-left: 20px;">
<div><span id="weather" style="color: #B0E0E6; font-size: 15px;background-color:grey;"></span></div>
</div>
<script type="text/javascript">
$('#weather').leoweather({ format: '{时段}好!,<span id="colock">现在时间是:<strong >{年}年{月}月{日}日 星期{周} <span style=" color: #FF7F00">{时}:{分}:{秒}</span></strong>,</span> <b>{城市}天气</b><span style=" color: #FF7F00"> {天气} </span>{夜间气温}℃ ~ {白天气温}℃' });
</script>


  

引用的js地址 : weather.js
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: