मेरे पास एक डीआईवी माप 400px चौड़ा है, जिसमें दो डीआईवी साइड-बाय-साइड हैं, प्रत्येक 400px की चौड़ाई और 600 पीएक्स की ऊंचाई के साथ। दोनों डीवी की चौड़ाई तय की गई है, हालांकि ऊंचाई अलग-अलग हो सकती है। मैं दूसरी डीवी को छिपाना चाहता हूं और पहली बार दिखाता हूं, डीआईवी के अंदर स्क्रोलिंग के साथ।ओवरफ्लो-एक्स: छुपा भी ऊर्ध्वाधर सामग्री को छुपाता है
मेरा समाधान, मैंने सोचा, ओवरफ्लो-एक्स को छिपाना था। ऐसा लगता है कि वाई ओवरफ्लो भी छिपा हुआ है।
#schools-sub-nav {
}
#schools-container {
width: 400px; /* Set the width of the visible portion of content here */
background-color: fuchsia;
position: relative;
overflow-x: hidden;
}
#schools-list {
width: 400px; /* Set the width of the visible portion of content here */
height: 600px; /* Delete the height, let the content define the height */
background-color: purple;
position: absolute;
top: 0;
left: 0;
}
#boards-list {
width: 400px; /* Set the width of the visible portion of content here */
height: 600px; /* Delete the height, let the content define the height */
background-color: green;
position: absolute;
top: 0;
left: 400px;
}
<div id="schools-sub-nav"> <a href="#schools-list">Schools List</a> // <a href="#boards-list">Boards List</a> </div>
<div id="schools-container">
<div id="schools-list"> One </div>
<div id="boards-list"> Two </div>
</div>
मैं #schools-list
दिखाई होने की उम्मीद है, लेकिन किसी कारण से #schools-container
में overflow-x: hidden
गुप्त रखता है:
यहाँ मेरी कोड है।
अरे जैक, मुझे यकीन नहीं है कि मैं समझता हूं। मुझे लगता है कि अतिप्रवाह नियम तैनात divs के संयोजन के साथ बस ठीक काम कर रहा है, मैं कंटेनर की ऊंचाई जोड़कर परीक्षण कर सकते हैं। –
@OllyF मैंने अभी अपने प्रश्न को एक पहेली के साथ अपडेट किया है। – jackJoe
"आपको स्थिति प्रकार (सामान्य/पूर्ण नहीं) को बदलने की आवश्यकता है" <- यह – Xavier