求大神看看!如何使界面有颜色或背景!
程序代码:
<%@ page language="java" pageEncoding="utf-8"%> <%@ taglib uri="/struts-tags" prefix="s" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html > <head> <title>论坛账户相似性计算软件</title> <style type="text/css"> .h{ height: 45px; } </style> </head> <script type="text/javascript"> function dosubmit(){ document.form0.action = "initAct!getFile.action"; document.form0.submit(); } </script> <body> <form action="initAct!getFile.action" name="form0" method="post"> <table align="center" cellpadding="1" cellspacing="1" width="976"> <tr> <td align="center" height="60">欢迎使用论坛账户相似性计算软件</td> </tr> </table> <table align="center" cellpadding="1" cellspacing="1" border="1" width="800" height="100" > <tr> <td align="center" height="60" height="60">请输入网页地址:</td> <td><input type="text" name="path" style="width:300px;" value='<s:property value="path"/>'> <input type="button" value="解析网页" onclick="javascript:dosubmit()"> <br/> <font color="red"> <s:property value="mes"/> </font> </td> </tr> </table> </form> </body> </html><%@ page language="java" pageEncoding="utf-8"%> <%@ taglib uri="/struts-tags" prefix="s" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html > <head> <title>论坛账户相似性计算软件</title> <style type="text/css"> .h{ height: 45px; } </style> </head> <script type="text/javascript"> function dosubmit(){ document.form0.action = "initAct!init.action"; document.form0.submit(); } function clearText() { document.getElementById("text").value = ""; } </script> <body> <form action="initAct!init.action" name="form0" method="post"> <table align="center" cellpadding="1" cellspacing="1" width="976"> <tr> <td align="center" height="60">欢迎使用论坛账户相似性计算软件</td> </tr> </table> <table align="center" cellpadding="1" cellspacing="1" border="1" width="800" height="240" > <tr> <td align="center" height="60">请输入账户信息:</td> <td>name: <input type="text" name="bean.name" value="<s:property value="bean.name"/>"> </td> <td>id: <input type="text" name="bean.id" value="<s:property value="bean.id"/>"> </td> <td>gender: <input type="text" name="bean.gender" value="<s:property value="bean.gender"/>"> </td> <td>has_grade: <input type="text" name="bean.has_grade" value="<s:property value="bean.has_grade"/>"> </td> <td>grade_level: <input type="text" name="bean.grade_level" value="<s:property value="bean.grade_level"/>"> </td> </tr> <tr> <td height="60">Grade_exp: <input type="text" name="bean.Grade_exp" value="<s:property value="bean.Grade_exp"/>"> </td> <td>Fans_num: <input type="text" name="bean.Fans_num" value="<s:property value="bean.Fans_num"/>"> </td> <td>Is_concerned: <input type="text" name="bean.Is_concerned" value="<s:property value="bean.Is_concerned"/>"> </td> <td>Is_private: <input type="text" name="bean.Is_private" value="<s:property value="bean.Is_private"/>"> </td> <td>Outer_id: <input type="text" name="bean.Outer_id" value="<s:property value="bean.Outer_id"/>"> </td> <td>Contentid: <input type="text" name="bean.Contentid" value="<s:property value="bean.Contentid"/>"> </td> </tr> <tr> <td height="60">Is_anonym: <input type="text" name="bean.Is_anonym" value="<s:property value="bean.Is_anonym"/>"> </td> <td>Open_id: <input type="text" name="bean.Open_id" value="<s:property value="bean.Open_id"/>"> </td> <td>Open_type: <input type="text" name="bean.Open_type" value="<s:property value="bean.Open_type"/>"> </td> <td>Ft_date: <input type="text" name="bean.Ft_date" value="<s:property value="bean.Ft_date"/>"> </td> <td>Ft_floor: <input type="text" name="bean.Ft_floor" value="<s:property value="bean.Ft_floor"/>"> </td> <td>Weiwang: <input type="text" name="bean.Weiwang" value="<s:property value="bean.Weiwang"/>"> </td> </tr> <tr> <td height="60">Yonghuzu: <input type="text" name="bean.Yonghuzu" value="<s:property value="bean.Yonghuzu"/>"> </td> <td>Caifu: <input type="text" name="bean.Caifu" value="<s:property value="bean.Caifu"/>"> </td> <td>Usercreatedate: <input type="text" name="bean.Usercreatedate" value="<s:property value="bean.Usercreatedate"/>"> </td> <td>Ftnum: <input type="text" name="bean.Ftnum" value="<s:property value="bean.Ftnum"/>"> </td> <td>Jhnum: <input type="text" name="bean.Jhnum" value="<s:property value="bean.Jhnum"/>"> </td> <td>Online_time: <input type="text" name="bean.Online_time" value="<s:property value="bean.Online_time"/>"> </td> </tr> </table> </form> <form action="index.jsp" method="post"> <table align="right" cellpadding="1" cellspacing="1" width="200"> <tr> <td colspan="2" height="30" > <input type="button" value="提交" onclick="javascript:dosubmit()"> </td> </tr> <tr> <td> <button type="submit">重置</button> </td> </tr> </table> </form> <br/> <br/> <br/><br/> <table align="center" cellpadding="1" cellspacing="1" border="1" width="976" > <tr> <td height="30">账户序号</td> <td>账户名称</td> <td>发帖时间</td> <td>相似度值</td> </tr> <s:iterator value="list1" status="i"> <tr> <td><s:property value="#i.count"/></td> <td><s:property value="name"/></td> <td><s:property value="Ft_date"/></td> <td><s:property value="hit"/></td> </tr> </s:iterator> </table> <br/> <table align="center" cellpadding="1" cellspacing="1" border="1" width="976"> <tr> <td height="30">相似度值</td> <td>账户数量:</td> </tr> <s:iterator value="nn" status="i"> <tr> <td><s:property value="#i.count-1"/></td> <td><s:property value="nn[#i.count-1]"/></td> </tr> </s:iterator> </table> </body> </html>
求大神看看!!
[ 本帖最后由 曾经的梦想 于 2013-6-11 17:55 编辑 ]