Скролл
This commit is contained in:
parent
9da8a0fd79
commit
84c7c71263
@ -43,15 +43,17 @@
|
||||
<div class="row">
|
||||
<div class="col-4">Students:</div>
|
||||
<div class="col-8">
|
||||
@foreach (var student in students)
|
||||
{
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="studentIds" value="@student.Id" id="student-@student.Id">
|
||||
<label class="form-check-label" for="student-@student.Id">
|
||||
@student.Name
|
||||
</label>
|
||||
</div>
|
||||
}
|
||||
<div class="scrollable-list">
|
||||
@foreach (var student in students)
|
||||
{
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="studentIds" value="@student.Id" id="student-@student.Id">
|
||||
<label class="form-check-label" for="student-@student.Id">
|
||||
@student.Name
|
||||
</label>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -95,4 +97,3 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
@ -20,3 +20,8 @@ html {
|
||||
body {
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
|
||||
.scrollable-list {
|
||||
max-height: 200px; /* Âûñîòà ñêðîëëáàðà */
|
||||
overflow-y: auto; /* Äîáàâëÿåì ñêðîëëáàð */
|
||||
}
|
Loading…
Reference in New Issue
Block a user