Home > Web Front-end > HTML Tutorial > div在WIDTH100%的情况下不出现滚动条。什么情况?_html/css_WEB-ITnose

div在WIDTH100%的情况下不出现滚动条。什么情况?_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:36:15
Original
1621 people have browsed it

全局overflow:hidden的;<table border="0" cellpadding="0" cellspacing="0" style="width:100%;height:100%;"><tr><td style="width:100%;height:100%"><div style=" width:100%;height:100%; overflow:scroll; "><span style="width:3333px;">123123123</span></div></td></tr></table>
Copy after login



这样的情况,实际浏览中123123123会冲破浏览器被HIDDEN掉,实际就是DIV里的width100%限制,超过部分用滚动条的这个没有起作用

什么情况啊?


回复讨论(解决方案)

原来加一个TABLE LAYOUT的CSS就可以了~~

自己搞定了,送分啦,谁来接~~

html,body{margin:0;padding:0;}接分

html,body{margin:0;padding:0;}接分

不对哦~不是这个问题,这个我试过~~不过分还是给你~~

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template