How to insert weather forecast into your website

How to insert weather forecast into your website

We hope to insert the weather forecast into the website: the following effect:



Need to insert the following code:

<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>

That link is to the "China Weather" website.

When you need the weather of other cities, replace the string 101190801. So how do I know what string is what city?

For example, when we search for Shanghai, we see the URL is: http://www.weather.com.cn/weather/101020100.shtml

Then you understand! Just replace the original string with the number string after the city you need!

<<:  How to package the docker image, push it to the remote server and deploy it to k8s

>>:  A brief discussion on the solution to the failure of starting the server installation in MySQL

Recommend

How to modify the port mapping of a running Docker container

Preface When docker run creates and runs a contai...

Detailed explanation of the difference between $router and $route in Vue

We usually use routing in vue projects, and vue-r...

Vuex implements a simple shopping cart

This article example shares the specific code of ...

What is the base tag and what does it do?

The <base> tag specifies the default addres...

Comparative Analysis of MySQL Binlog Log Processing Tools

Table of contents Canal Maxwell Databus Alibaba C...

JavaScript flow control (loop)

Table of contents 1. for loop 2. Double for loop ...

Detailed explanation of the practical application of centos7 esxi6.7 template

1. Create a centos7.6 system and optimize the sys...

VMware ESXi 5.5 deployment and configuration diagram process

Table of contents 1. Installation requirements 2....

Method of dynamically loading geojson based on Vue+Openlayer

Load one or more features <template> <di...

Web front-end skills summary (personal practical experience)

1. Today, when I was making a page, I encountered ...

Installation tutorial of the latest stable version of MySQL 5.7.17 under Linux

Install the latest stable version of MySQL on Lin...

mysql 8.0.16 winx64.zip installation and configuration method graphic tutorial

This article shares the specific code of MySQL 8....

Writing a rock-paper-scissors game in JavaScript

This article shares the specific code for writing...

Detailed tutorial on installing harbor private warehouse using docker compose

Overview What is harbor? The English word means: ...

Vue uses el-table to dynamically merge columns and rows

This article example shares the specific code of ...