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

Vue realizes the sliding cross effect of the ball

This article example shares the specific code of ...

Nginx improves access speed based on gzip compression

1. Why does nginx use gzip? 1. The role of compre...

VMware vsphere 6.5 installation tutorial (picture and text)

vmware vsphere 6.5 is the classic version of vsph...

Web design experience: Make the navigation system thin

<br />When discussing with my friends, I men...

Standard summary for analyzing the performance of a SQL statement

This article will introduce how to use explain to...

Learn the common methods and techniques in JS arrays and become a master

Table of contents splice() Method join() Method r...

Vue code highlighting plug-in comprehensive comparison and evaluation

Table of contents Comprehensive comparison From t...

Write a formal blog using XHTML CSS

The full name of Blog should be Web log, which me...

Sample code for displaying a scroll bar after the HTML page is zoomed out

Here is a record of how to make a scroll bar appe...

What is Nginx load balancing and how to configure it

What is Load Balancing Load balancing is mainly a...

How to set up Referer in Nginx to prevent image theft

If the server's images are hotlinked by other...