框架窗口不显示水平滚动条,怎么办?。。。。。。。

bonoji 2004-08-24 12:15:54
我使用框架窗口,左边显示目录,点击右边显示文章,可目录里文章名很长时就会分行显示,我设置了滚动条,可是只有垂直没见到水平,所以总是分行显示,我怎么做才能不分行而通过水平条拉了看呢?
...全文
211 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
LxcJie 2004-08-24
  • 打赏
  • 举报
回复
<body style="overflow-x:hidden">
bonoji 2004-08-24
  • 打赏
  • 举报
回复
自己解决了,^_^
谢谢大家,分数照给
bonoji 2004-08-24
  • 打赏
  • 举报
回复
index.html代码如下:

<html>

<head>
<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>
bonoji 2004-08-24
  • 打赏
  • 举报
回复
没有:
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>
mjpclab 2004-08-24
  • 打赏
  • 举报
回复
上面说的也有可能,看看表格单元个有没有设定 nowrap,有同样去掉
mjpclab 2004-08-24
  • 打赏
  • 举报
回复
再找找有没有下面之类的代码,有把它去掉
word-break:break-all;
word-wrap:break-word
黑马 2004-08-24
  • 打赏
  • 举报
回复
把代码贴出来,你的行设置成nowrap
bonoji 2004-08-24
  • 打赏
  • 举报
回复
到底怎么办?
mjpclab 2004-08-24
  • 打赏
  • 举报
回复
是把 style= 那句话去掉

191301587 2004-08-24
  • 打赏
  • 举报
回复
<body
bonoji 2004-08-24
  • 打赏
  • 举报
回复
to:LxcJie(肖冲*爱*捷捷) (
这句放在那?

87,904

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧