Some findings and thoughts about iframe

Some findings and thoughts about iframe
This story starts with an unexpected discovery today. The company has several websites. There are links between each other in the friend link. I just changed a link and wanted to check it. When I used the webmaster tool to check, I found that my link was not there! It turns out that I put the friendly links in footer.hmtl. Then embed it into the homepage via iframe. In this way, what is detected is not the home page link, but the link to the footer page. The same is true for search engines. Search engines will look at the pages introduced by the iframe and follow the links inside, but they don’t pay much attention to them. And each individual iframe is also treated as a separate page. In fact, this can be found when viewing the source code of the page. You can only see the code of the iframe, but not the code of the page inside.

Code

Copy code
The code is as follows:

<div id="foot" class="clear_left">
<iframe src="web/iframe/foot.html" width="960" height="100" align=""
frameborder="0" hspace="0" scrolling="no" vspace="0"
allowtransparency="1"></iframe>
</div>


Based on these considerations. There are many places where iframes cannot be used. Although sometimes he is very useful.
Iframes are no longer used intentionally. Of course we have to find a way to replace it. The first thing that comes to mind is of course include, and there are many types of include. As for jsp, there are two types: one is the include directive %@include file=""%>, and the other is the jsp action directive: <jsp:include page="" /> The former is suitable for including static files, and the latter is suitable for including dynamic jsp. There is also an ssi instruction that has nothing to do with jsp directly. I only know that this method exists but have never used it. It seems to be parsed by the web server. I don't know the details, if anyone knows please let me know.
By the way, I found that Tencent’s website does not use iframe. Many other large websites also use it, such as Sina, Taobao and so on. Looking forward to knowing the solution of qq.

<<:  JavaScript Composition and Inheritance Explained

>>:  Teach you how to achieve vertical centering elegantly (recommended)

Recommend

Three methods to modify the hostname of Centos7

Method 1: hostnamectl modification Step 1 Check t...

Summary of Vue's common APIs and advanced APIs

Table of contents nextTick Mixins $forceUpdate se...

How to build a SOLO personal blog from scratch using Docker

Table of contents 1. Environmental Preparation 2....

How to enable the root account in Ubuntu 20.04

After Ubuntu 20.04 is installed, there is no root...

JavaScript implements the nine-grid mobile puzzle game

This article shares the specific code for JavaScr...

A brief discussion on how to use slots in Vue

How to define and use: Use the slot tag definitio...

Use and optimization of MySQL COUNT function

Table of contents What does the COUNT function do...

Analysis of MySQL latency issues and data flushing strategy process

Table of contents 1. MySQL replication process 2....

The complete version of the common Linux tool vi/vim

Why learn vim Linux has a large number of configu...

How to modify the ssh port number in Centos8 environment

Table of contents Preface start Preface The defau...

Things to note when designing web pages for small-screen mobile devices

The reason is that this type of web page originate...

js uses the reduce method to make your code more elegant

Preface In actual projects, the most common proce...

Explain how to analyze SQL efficiency

The Explain command is the first recommended comm...