if (list.equals("essay")) { out.println("<html>"); out.println("<body>"); out.println("<p>标题:<input type="text" value=""></P>"); out.println("<p>正文:<input type="text" value=""></p>"); out.println("<input type="submit"/>"); out.println("</body>"); out.println("</html>"); }
1 回答
逆光之羽
TA贡献55条经验 获得超13个赞
<%@ page pageEncoding="utf-8"%> <% String list = "essay"; if (list.equals("essay")) { out.println("<html>"); out.println("<html>"); out.println("<body>"); out.println("<div style=\"width:100px;float:left;\"><ul>"); out.println("<li><a href=\"#\">主页</a></li>"); out.println("<li><a href=\"#\">相册</a></li>"); out.println("<li><a href=\"#\">说说</a></li>"); out.println("<li><a href=\"#\">更多</a></li>"); out.println("<li><a href=\"#\">退出</a></li>"); out.println("</ul></div>"); out.println("<div style=\"float:left;border-left:solid 5px #D0D0D0;padding-left:10px;\">"); out.println("<form action=\"\" method=\"post\">"); out.println("<p>标题:<input type=\"text\" value=\"\"></P>"); out.println("正文:<br><textarea></textarea>"); out.println("<br><br><input type=\"submit\" value=\"发表\"/>"); out.println("</form>"); out.println("</div>"); out.println("</body>"); out.println("</html>"); } %>
展示效果
添加回答
举报
0/150
提交
取消