How to embed other web pages in a web page using iframe

How to embed other web pages in a web page using iframe

How to use iframe:

Copy code
The code is as follows:

<DIV align=center><IFRAME src="<a href="https://www.jb51.net">https://www.jb51.net</a>" frameBorder=0 marginwidth=0 marginheight=0 scrolling=no style="width168:px;height:50px;" width=168 height=50 scrolling=no ALLOWTRANSPARENCY="true"></IFRAME></DIV>


Description: This is an example of an application that embeds a weather forecast. This effect is the most commonly used. in:

1. "https://www.jb51.net" is the address of the embedded web page;
2. width="168px" height="50px" are the width and height of the embedded web page. The larger the value, the larger the range. To hide the embedded content, set these two values ​​to 0;
3. scrolling="no" is the scrolling setting for the embedded web page. When the content range is large, it can be set to allow scrolling as scrolling="yes". ALLOWTRANSPARENCY="true" allows transparent settings, change true to no for opaque settings. Same below;
4. frameBorder=0 is the border setting for the embedded web page. 0 means no border, 1 means the thickness of the border. The larger the value, the thicker the border. Same below;
5. marginwidth=0 marginheight=0 Set the distance from the embedded web page to the margin, 0 means no margin.

<<:  Pure CSS to achieve the text icon function by taking the first character of the string

>>:  Summary of Nginx location and proxy_pass path configuration issues

Recommend

Share the problem of Ubuntu 19 not being able to install docker source

According to major websites and personal habits, ...

How to view the execution time of SQL statements in MySQL

Table of contents 1. Initial SQL Preparation 2. M...

Specific use of ES6 array copy and fill methods copyWithin() and fill()

Table of contents Batch copy copyWithin() Fill ar...

JS+CSS to realize dynamic clock

This article example shares the specific code of ...

MySQL 20 high-performance architecture design principles (worth collecting)

Open Source Database Architecture Design Principl...

How to solve the mysql ERROR 1045 (28000)-- Access denied for user problem

Problem description (the following discussion is ...

Share some uncommon but useful JS techniques

Preface Programming languages ​​usually contain v...

The combination and difference between ENTRYPOINT and CMD in dockerfile

In the previous article [Detailed explanation of ...

Introduction and use of Javascript generator

What is a generator? A generator is some code tha...

Teach you how to use MySQL8 recursive method

I have previously written an article about recurs...

CSS to achieve particle dynamic button effect

Original link https://github.com/XboxYan/no… A bu...

Use of Linux cal command

1. Command Introduction The cal (calendar) comman...

How to achieve centered layout in CSS layout

1. Set the parent container to a table and the ch...