Home  >  Article  >  Web Front-end  >  overflow:scroll; doesn’t work, please help~! _html/css_WEB-ITnose

overflow:scroll; doesn’t work, please help~! _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:17:091379browse

	background-color: #f0f0f0;	border: solid 1px #000000; 	position: absolute; 	left:0px; 	width: 800px; 	height: 60px;	text-align:left;	overflow:scroll;


Please explain~!


Reply to the discussion (solution)


How to explain the lack of beginning and end

<div id="div_kxxb_aspl_drugs" style="background-color: #f0f0f0; border: solid 1px #000000; position: absolute; display:none;  left:0px; 							width: 800px; height: 60px;text-align:left;overflow:scroll;"> </div>

display:none; 

How can this still scroll? ?

Even if you remove it, there will still be scroll bars~
<div id="div_kxxb_aspl_drugs" style="background-color: #f0f0f0; border: solid 1px #000000; position: absolute; display:none;  left:0px;                             width: 800px; height: 60px;text-align:left;overflow:scroll;">                            <p>111111111111111111111111111111111</p>                            <p>111111111111111111111111111111111</p>                             <p>111111111111111111111111111111111</p>                              <p>111111111111111111111111111111111</p>                            <p>111111111111111111111111111111111</p>                             <p>111111111111111111111111111111111</p>                              <p>111111111111111111111111111111111</p>                            <p>111111111111111111111111111111111</p>                             <p>111111111111111111111111111111111</p></div>

Haha. . . Thank you everyone~! display:none; This is necessary~!
I solved it in another way~! Just remove
position: absolute;
overflow:scroll;
so that although the pop-up style changes, it still looks good!

CSS code??1display:none;
How can I scroll? ?

Even if you remove it, there will still be scroll bars~
XML/HTML code??123456789101112

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