我们有一个解耦的AngularJS (1.8)应用程序和服务它的Node.JS,我们正在尝试允许服务器端呈现视图。
Node (添加为路由,响应为HTML):
if (req.query.username) {
// initializes secondary authentication process
let frame = <SOME HTML IFRAME>
// shows the IFrame
res.writeHead(200, {'Content-Type': 'text/html'})
r
我遇到了一个问题,我似乎无法访问我的iframe样式元素(主要是宽度和高度)。很明显我做得不对。希望有人能给我指明正确的方向。如有任何帮助或反馈,将不胜感激:)
这是我的主页(index.html):
此页包括iframe。
<iframe class="myiFrame" src="iframes/iframe1.html" allowtransparency="true" frameborder="0"></iframe>
iframe1.html页面:
This page includes a ja