I have been working on a project recently - Budou Collection. In short, it is to collect the pictures you like to the Budou page. Many aspects of iframe are used in this process, which can be summarized as follows: If you have ever made a black mask covering the entire page, and the user happens to be using IE6, and there happens to be a select element on the page, then you will have a headache (I won’t go into the principles here). We will find that the pop-up DIV cannot cover the select, so it is our iframe's turn to appear. The logic is as follows: Put an iframe at the same level as the pop-up div Part of the code XML/HTML CodeCopy content to clipboard
2. Writing cookies across domains There are two domains, a.com and b.com. Under certain conditions, some of the functions of b will appear on page a. Sometimes when operating page a, you need to do some operations on the cookies of domain b.com to facilitate the user's next visit. We only need to add an iframe (dynamic or fixed) to page a, with the src attribute pointing to a proxy page of b, and perform cookie operations on this page. |
<<: How to write transparent CSS for images using filters
>>: Detailed steps to install nginx on Apple M1 chip and deploy vue project
1. Turn off the firewall and transfer the softwar...
1. The mysqldump backup method uses logical backu...
Preface The requirement implemented in this artic...
This article example shares the specific code of ...
<br />Related articles: 9 practical suggesti...
Docker Quickly Install Zookeeper I haven't us...
The explain command is the primary way to see how...
This article example shares the specific code of ...
Purpose Encapsulate the carousel component and us...
Preface I recently encountered a problem at work....
Achieve results Implementation Code html <div ...
Only show the top border <table frame=above>...
Today, when I was practicing with the Baidu page,...
What should I do if MySQL fails to connect to the...
Table of contents Array deduplication 1. from() s...