代码拉取完成,页面将自动刷新
class HtmlFrameWriter:
def add_start(self,path):
path=path.split(r"/")[-1]
#print(path)
style="""<style> div.frame {position:absolute;color:transparent} body {width:792px;height:1120px;background-image: url("""
style=style+path
style=style+""");background-repeat:no-repeat;border:1px solid black;margin:0px}</style>"""
begain="<html><head>{}</head><body>".format(style)
return begain
def add_div(self,words,width,top,height,left,path):
div="""<div class="frame" id="{}" style="width:{}px;height:{}px;top:{}px;left:{}px">{}</div>""".format(path,width,height,top,left,words)
return div
def add_end(self):
end="</body></html>"
return end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。