What are the problems when responsive websites introduce other pages through iframe?

<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
  .wrap1{width: 320px;height:377px;}
  .wrap2{width: 1370px;height: 553px;}
  iframe{width: 100%;height: 100%;border: none;height: 100%;}
  </style>
</head>
<body>
  <h1></h1>
  <div class="wrap1"><iframe src="currency.html"></iframe></div>
  <div class="wrap2"><iframe src="map.html"></iframe></div>
</body>
</html>

//currentcy.html 
@media screen and (max-width:767px) {
  .c-width{
    width: auto;
  }
  .custom-til .custom-til-text{
    width: 268px;
  }
  .custom-til-fr{
    display: block;
  }
}
@media screen and (min-width:992px) {
  .currency-container{
    max-height: 377px !important;
  }
}

We have an online responsive website and want to leave a few places for the home page to display the pages of other data modules. It is introduced through iframe.
I have made several corresponding pages that are also responsive, using the @ media of css3 to control the display style of pc and mobile. It"s okay to test alone, but there"s a problem when you put it in iframe. Currentcy pages in iframe are not based on the width of the browser, but on the actual size of the iframe. Is there any way to solve this?
the original website has jquery, and I have to introduce jquery in the currentcy page, otherwise I can"t use it. Why can"t the page in iframe use the jquery file of the main page?

Apr.28,2022

  1. the actual size of the iframe is determined. Is there any way to solve this?

add the response style to your main page and let the width of the iframe tag respond

  1. Why can't the page in iframe use the jquery file of the main page?

Cross-domain issues. Different jquery only deal with the content of the current page


I also encountered this problem, but I had a problem with iframe on the ios phone. To use the jq of the parent class, use top.$

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e44a4f-44ac8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e44a4f-44ac8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?