简体   繁体   中英

Visual Studio Code Live Server: Not Works For Index.html using iframe tag

have a problem with Live Server Updating Index.html...

It's works when i doing manually save... working with big project, and manually update every time page is too stupid deal

in Index.html I using Iframe to navigation.html..

pay attention when i updating navigation.html it's working, updating...

but when i trying to update index.html.. unfortunately...

Here Is:::

index.html:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>Pam  dasd adsadsa dasdsa </h1>
    <iframe 1 src ="navigation.html" linkTarget = "iframe2">
    <iframe2>
</body>
</html>

navigation.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul>
        <li>agent 1 link</li>
        <li>agent 2 link</li>
        <li>agent 3 link</li>
        <li>agent 4 link</li>
    </ul>
</body>
</html>

PS: Help -> Toggle Developer Tool, showing no errors, all working ok. i mean: [Extension Host] Change detected

Here is Repo:::

enter image description here

Maybe that it extension bug? :)

PS:::

!!!Attention!!!

Without iframe tag Index.html.. Live is working well.

But i need iframe.

Is your index.html inside of a folder preceded by a period?

Does your domain look like this? http://127.0.0.1:5500/.folder/index.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM