好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

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

HTML css position





#div1 {width:150px; height:200px; background:green; position:absolute; right:-140px;}




无标题文档








回复讨论(解决方案)

隐藏为什么不用 display: none?

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

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

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



#div1 {width:150px; height:200px; background:green; position:absolute; left:-140px;}




无标题文档








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


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



#div1 {width:150px; height:200px; background:green; position:absolute; left:-140px;}




无标题文档








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

求解啊

body {
overflow:hidden;
}

查看更多关于为什么div不能在页面右侧隐藏起来啊而是下面有个移动框_html/css_WEB-ITnose的详细内容...

  阅读:39次