免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3031 | 回复: 3
打印 上一主题 下一主题

[表格] 单元格里如何做滚动条? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-31 08:57 |只看该作者 |倒序浏览
<div style="width:100%;height:100;overflow-x:hidden;overflow-y:scroll">放在<p>段落前,出来的滚动条是灰色的,如何解决?

[ 本帖最后由 HonestQiao 于 2006-6-2 10:59 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-06-01 08:49 |只看该作者
首先 ,overflow-x和overflow-y 在firefox下面是不支持的。
其次,你希望滚动条是什么样子的?如果是颜色和样式可以用css定义。

论坛徽章:
0
3 [报告]
发表于 2006-06-01 13:01 |只看该作者
我是在IE下做的,只要滚动条能使用就可以的.

论坛徽章:
0
4 [报告]
发表于 2006-06-01 13:03 |只看该作者

是不是css少东西啊

<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Dalian Victor IC Co., Ltd. </title>
<style type="text/css">
<!--
body,td,th {
        font-size: 12px;
        line-height:150%;
       
}
a:link {
        text-decoration: none;
        color: #000000;
}
a:visited {
        text-decoration: none;
        color: #000000;
}
a:hover {
        text-decoration: none;
        color: #000000;
}
a:active {
        text-decoration: none;
        color: #000000;
}
.STYLE2 {
        font-family: "Times New Roman", Times, serif;
        font-size: 16px;
}
-->
</style>
<script type="text/JavaScript">
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
</head>
<body topmargin="0">
<div align="center">
  <table width="830" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="10" valign="bottom" bgcolor="#003366"><img src="images/d3.gif" width="13" height="57" /></td>
      <td width="131" valign="bottom" bgcolor="#0170AE"><img src="images/logo.gif" width="140" height="65" /></td>
      <td width="699" align="right" valign="bottom" bgcolor="#003366"><map name="Map6" id="Map6">
          <area shape="rect" coords="35,1,59,12" href="home.aspx" />
        </map>
        <table width="100" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td align="right"><img src="images/flag.gif" width="68" height="18" border="0" usemap="#Map3" /></td>
          </tr>
        </table>
        <br /></td>
    </tr>
    <tr>
      <td height="22" colspan="3">&nbsp;</td>
    </tr>
    <tr>
      <td height="479" colspan="3"><table width="450" border="0" cellspacing="0" cellpadding="0">
              <tr>
               <td height="594"><div style="width:100%;height:100;overflow-x:hidden;overflow-y:scroll"> 左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br>左单元格<br></div>     </td>
     <td>右单元格     </td>
              </tr>
      </table></td>
    </tr>
    <tr>
      <td height="44" colspan="3" bgcolor="B3D2E1"><div align="center"></div></td>
    </tr>
    <tr>
      <td colspan="3">&nbsp;</td>
    </tr>
  </table>
</div>
</body>
</html>
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP