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

php中世界最好的语言
Release: 2018-02-06 10:12:31
Original
2866 people have browsed it

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,

 
Copy after login

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

   
Copy after login

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

 
Copy after login

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

查看
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!