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

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

WBOY
WBOYoriginal
2016-06-21 09:44:081332parcourir

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;
    }

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn