开发带有页脚、页眉和左栏的网页。
下面是main.jsp
代码
<table>
<tr valign='top'><td><%@include file='leftside.jsp'%></td>
<td><table>
<tr><td><%@include file='header.jsp'%></td></tr>
<tr><td>Content</td></tr>
<tr><td><%@include file='footer.jsp'%></td></tr>
</table>
</td>
</tr>
</table>
leftside.jsp
代码如下
<body bgcolor=blue>
Leftside
</body>
在运行 main.jsp
时,我只得到 Leftside 文本。不显示蓝色背景色。我错过了什么吗?谢谢。
最佳答案
尝试使用这个:
<body style="background-color:blue;">
或者添加撇号 "blue"
:
<body bgcolor="blue">
取而代之的是:
<body bgcolor=blue>
关于java - JSP 中的页眉、页脚、左侧和右侧模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34151349/