Home>Article>Web Front-end> How to operate the parent page of an iframe child page to block the page pop-up layer effect

How to operate the parent page of an iframe child page to block the page pop-up layer effect

php中世界最好的语言
php中世界最好的语言 Original
2018-02-06 10:12:31 2882browse

This time I will show you how to operate the parent page of an iframe to block the page pop-up layer effect. How to operate the parent page of an iframe to block the page pop-up layer effect.What are the precautions?, here is the actual combat Let’s take a look at the case.

Question: In index.html, iframe introduces son.html. How to click an operation in son.html to block the entire page and pop up the layer to be displayed?
Preparation: index.html son.html
Ideas:
One: iframe in index.html introduces son.html,

 

2: In the body part of index.html Add shielding layer and content display layer

   

Three: Set the style of div in index.html and implement the method of opening and closing the layer

 

Four: Call the parent page for an operation in son.html Method

查看

I believe you have mastered the method after reading these cases. For more exciting information, please pay attention to other related articles on the php Chinese website!

Related reading:

What are the differences between the standard writing method of HTML and the code generated by Dreamweaver

The hr horizontal line in HTML How to use

htmlHow to achieve mixed graphics and text

How to use iframe to embed other web pages in the current web page

The above is the detailed content of How to operate the parent page of an iframe child page to block the page pop-up layer effect. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn