【发布时间】:2012-04-09 23:34:49
【问题描述】:
我正在尝试让一些 HTML 与我的 python 代码一起工作。 这是我的一个 CSS 代码。
#footerBar {
height: 40px;
background: red;
position: fixed;
bottom: 0;
width: 100%;
z-index: -1;
}
但是,当我尝试访问该页面时,出现以下错误。
File "projv2.py", line 151, in welcome
</form>""" %(retrievedFullName, retrievedUserName,)
ValueError: unsupported format character ';' (0x3b) at index 1118
我认为它与 % 混淆了,因为我确实在 HTML 的其他地方使用了它。
任何帮助将不胜感激。
【问题讨论】:
-
你是如何“访问”那个页面的?
-
好的,你有没有测试过如果你删除
%(替换为px或其他)会发生什么。错误会消失吗?