首页 > 代码库 > table 谷歌下不出现滚动条
table 谷歌下不出现滚动条
<table></table><style>table {overflow-y:scroll;max-height:152px; height:auto;}<style>
问题:ie下,火狐下能正常出现滚动条
谷歌不能出现滚动条
解决:
第1种:
头部<!DOCTYPE dtd的问题
第2种:
table {max-Height:120px;min-Height:40px;height:expression(this.scrollHeight > 120 ? "120px" : (this.scrollHeight < 40 ? "40px" : "auto"));
overflow-y:scroll; border:1px solid #ccc;}
百度关键词:div 最大高度
参考:
http://zhidao.baidu.com/link?url=3NHwhXRn8EI4VUu6Xz0IN7DpbuKpnEMmoOVpeawfOekgT2d-nRI0rwfHSAagX17NqxKBw8FYcmYdfWGq2E6Qc
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。