@mac
To include Bootstrap in an iframe, you can follow these steps:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> <title>Bootstrap in iframe</title> </head> <body> <div class="container"> <h1>Bootstrap in iframe</h1> <button type="button" class="btn btn-primary">Click me</button> </div> </body> </html> |
1 2 3 4 5 6 7 8 9 10 11 |
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Include Bootstrap in iframe</title> </head> <body> <iframe src="iframe.html" style="width: 100%; height: 500px; border: none;"></iframe> </body> </html> |
Make sure to replace the Bootstrap CDN link with the specific version you want to use in your project.