<body style="overflow-x:hidden">
解决方案 »
- 大家都是在什么系统下面开发的?
- jsp中如何插入文本编辑功能
- href 中传递 变量
- 如何当选中一个单选按钮时,使某个文本框不能输入
- 关于在客户端调用word打开网页的javascript的问题
- 在几秒刷新的页面,滚动条怎样实现按一定的次数完成滚动????
- 如果通过把本页的内容与入到另一页中并刷新显示
- 迫切想知道!!!!!
- 在线求助:请问能不能让用户在页面上改变table里列的宽度(以决定这一列是否可以显示)
- 火狐下的一段JS报错ReferenceError: event is not defined,晚上其他方法试了不好用
- 如何捕获popup消失时的事件?我想在popup窗口消失后作点处理,有没有这样的事件?
- 如何在page载入打开前,用js改变page的大小?
这句放在那?
word-break:break-all;
word-wrap:break-word
left.html代码如下:<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<%@include file="ShowTreeMenu.jsp"%>
<html>
<head>
<base target="main">
</head>
<SCRIPT LANGUAGE="JavaScript" src="tree.js"></SCRIPT><body bgcolor="#C0C0C0" leftmargin=0 topmargin=0 marginwidth=0 maginheight=0 bgproperties="fixed">
<%
int layer=1;
Connection con=null;
Statement stmt;
ResultSet rs;
String sql="select * from menu where parent_id=0 order by orderfor";Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=computer";
String user="sa";
String password="791102";
con= DriverManager.getConnection(url,user,password);
stmt=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
rs=stmt.executeQuery(sql);
out.println("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
out.println("<tr><td>我的书</td></tr>");
if(rs.next())
ShowTreeMenu(out,con,rs,layer);
out.print("</table>");
stmt.close();
con.close();//http://community.csdn.net/Expert/topic/3111/3111659.xml
%>
</body>
</html>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<title>新建网页 2</title>
</head><frameset rows="64,*,64" framespacing="3" border="0" frameborder="0">
<frame name="top" src="top_tree.jsp" scrolling=auto>
<frameset border=0 framespacing=3 frameborder=no cols=160,*>
<frame name="left" marginWidth=0 marginHeight=0 src="tree.jsp" scrolling=auto noresize>
<frame name="main" marginWidth=0 marginHeight=0 src="main_tree.jsp" scrolling=auto noresize" >
</frameset>
<frame name="bottom" marginWidth=0 marginHeight=0 src="bottom_tree.jsp">
</frameset>
</html>