【发布时间】:2019-02-14 18:07:57
【问题描述】:
对于样式滚动条(ul),我使用了 css。 .requestType 是 ul 的类。
我使用的css是 -
.requestType{
height:600px; overflow-y: scroll; }
.requestType::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px;
background-color: #F5F5F5; }
.requestType::-webkit-scrollbar { width: 5px; background-color: #F5F5F5; }
.requestType::-webkit-scrollbar-thumb{
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: darkgray; }
.list-group {
display: flow-root; }
它在 chrome 中运行良好。
但在 IE 和 mozilla firefox 的情况下,它会应用简单的滚动条而不对其进行样式设置。
对于IE 和mozilla firefox 中的滚动条样式,我应该怎么做。
<ul class="list-group mb-3 requestType" id="requestType">
<li class="list-group-item d-flex justify-content-between bg-light">
<div class="text-success">
<label class="Request_type" for="radio4">abc
<input type="radio" name="radio" value="abc" id="radio4">
<span class="checkmark"></span>
<h5><small class="text-muted">Brief description</small></h5>
</label>
</div>
</li>
<li class="list-group-item d-flex justify-content-between bg-light">
<div class="text-success">
<label class="Request_type" for="radio6">xyz
<input type="radio" name="radio" value="xyz" id="radio6">
<span class="checkmark"></span>
<h5><small class="text-muted">Brief description</small></h5>
</label>
</div>
</li>
【问题讨论】:
-
首先离开 IE,它不支持大多数当前的技术,因为微软已经贬低了它。
-
请分享您使用的html
标签: html css twitter-bootstrap