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

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

WBOY
Release: 2016-06-24 12:17:09
Original
1428 people have browsed it

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


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>
Copy after login

display:none; 
Copy after login

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>
Copy after login

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

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