我希望在JustPy生成的网页中嵌入一个html映射。我得到了错误的输出,我猜这意味着有一个CSS或其他冲突。任何获得这项工作的想法都将受到感激。
import justpy as jp
def map_page(request):
wp = jp.WebPage()
jp.Div(text='iFrame with map goes here...', a=wp)
m = jp.Div(a=wp)
m.inner_html = '<iframe src = "map.html"></iframe>'
return wp
jp.justpy(map_page)
wp = jp.WebPage()发布于 2022-08-20 08:19:28
有关工作示例,请参见http://ceur-ws-browser.bitplan.com/volume/400:
http://ceur-ws.org/Vol-400/嵌入:

headerHtml=f"""{links}<h3>{volume.h1}</h3>
<a href='{volume.url}'>{volume.acronym}<a>
{volume.title}<br>
{volume.desc}
published: {volume.pubDate}
submitted By: {volume.submittedBy}"""
iframeHtml=f"""
<iframe src='{volume.url}' style='min-height: calc(100%); width: calc(100%);'></iframe>"""
self.volumeHeaderDiv.inner_html=headerHtml
self.volumeDiv.inner_html=iframeHtmlhttps://stackoverflow.com/questions/67532124
复制相似问题