【发布时间】:2020-06-14 15:20:01
【问题描述】:
我想在 Text Division 类中设置 tex1,tex2 和 text3 划分,底部没有滚动条。但是正如你看到的底部有一个滚动条。我的错误是什么不让我,在 Text Class Div 的底部没有滚动条? 身体 { 边距:0px; 方向:rtl; }
.Text {
width: 500px;
min-height: 500px;
height: auto;
overflow: auto;
margin: 50px 30px;
border: 2px solid red;
}
.Text1 {
width: 100%;
height: 60px;
margin: 30px auto;
border: 1px dashed green;
font-family: "IranSans";
font-size: 20px;
text-align: center;
color: #fff;
}
.Text2 {
width: 100%;
min-height: 60px;
height: auto;
overflow: auto;
color: #fff;
font-size: 32px;
font-weight: bolder;
font-family: "IranSans";
text-align: center;
}
.Text3 {
width: 100%;
min-height: 80px;
height: auto;
overflow: auto;
font-size: 12px;
font-family: "IranSans";
color: #fff;
text-align: center;
border: 1px solid yellow;
}
.Resume {
width: 180px;
height: 60px;
margin: 0px auto;
border-radius: 5px;
background-color: #00d363;
border: 1px solid #00d363;
font-family: "IranSans";
text-align: center;
}
.RezumeA {
width: 100%;
height: 100%;
display: block;
border-radius: 5px;
text-decoration: none;
color: #fff;
line-height: 50px;
}
.RezumeA:hover {
background-color: #007bff;
color: #00d363;
border: #00d363;
}
<body>
<div class="Text">
<div class="Text1">بیش از 5000 شغل</div>
<div class="Text2">شغل رویایی ات دست پیدا کن</div>
<div class="Text3">ما بهترین و سریعترین ،راههای دستیابی به شغل مورد علاقه تان فراهم کرده ایم</div>
<div class="Resume"><a href="#" class="RezumeA">ارسال رزومه</a></div>
</div>
</div>
</header>
</body>
【问题讨论】: