Home  >  Article  >  Web Front-end  >  为什么div不能在页面右侧隐藏起来啊 而是下面有个移动框_html/css_WEB-ITnose

为什么div不能在页面右侧隐藏起来啊 而是下面有个移动框_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:44:081332browse

HTML css position

nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">





无标题文档








回复讨论(解决方案)

隐藏为什么不用 display: none?

隐藏为什么不用 display: none? 做div 移动 

嗯,那试试隐藏横向滚动条吧。
body {overflow-x:hidden}

嗯,那试试隐藏横向滚动条吧。
body {overflow-x:hidden} nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">





无标题文档








为什么靠左边就可以隐藏 而且木有滚动条啊


嗯,那试试隐藏横向滚动条吧。
body {overflow-x:hidden} nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">





无标题文档








为什么靠左边就可以隐藏 而且木有滚动条啊   靠右就出现横向滚动条

求解啊  

body {
    overflow:hidden;
    }

Statement:
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