将网页嵌入到html文档中无法正常工作

时间:2017-06-27 18:44:39

标签: html

我正在尝试将cisco卫星设备的网页嵌入到我的网页的div标签中,但是我遇到了以下问题

页面在登录屏幕上正确加载,但是一旦我输入登录详细信息,它就不会登录,而是保留在登录屏幕上。我已经尝试了div和iframe,两者都给了我相同的结果。但是,当我直接在IE或Chrome上访问设备时,它可以正常工作。问题只出在我的iframe或div中。

我的samle代码在下面,但是因为你无法访问该设备,你可能无法看到它正常工作..在黑暗中拍摄只是请你们所有请给我一些东西试试

#include <vector>
#include <map>
#include <fstream>
#include <string>
#include <sstream>

struct Polynomial {
    Polynomial(const std::string& line) {
        std::istringstream iss{line};
        for(int i{}, z{}; iss >> i >> z;)
            polyMap[z] = i;
    }
    std::map<int, int> polyMap;
};

std::istream& operator>>(std::istream& is, std::vector<Polynomial>& poly)
{
    for(std::string line; std::getline(is, line);)
        poly.emplace_back(line);
    return is;
}

int main()
{
    std::vector<Polynomial> polys;
    std::ifstream{"infile.txt"} >> polys;
}

我也尝试使用iframe,但也无法正常工作

    <!<doctype html>

    <html lang="en">

    <body>


        <div style="margin: 0 auto; width: 100%; height: 100%;">

            <object type="text/html" data="http://192.168.10.107/"
                style="width: 100%; height: 100%; margin: 1%;"> </object>

        </div>

    </body>

    </html>

1 个答案:

答案 0 :(得分:0)

在这里,我有一个类似你想要的页面。

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MyTitle</title>
</head>

<frameset rows="0,*" border="0">
<frame name="header" scrolling="no" noresize target="main">
<frame name="main" src="http://192.168.10.107/">
<noframes>
<body>

</body>
</noframes>
</frameset>

</html>