html - 下拉菜单适用于 Chrome 而不是 Firefox
问题描述
我已经在上面的链接中提出了这个问题,它得到了修复,但它只在 Chrome 中工作,而不是在 Firefox 中。我需要的是我只需要在表格标题之外显示下拉箭头标题。但现在我可以看到它只显示在标题下方并以全宽显示。
.drop-down {
border: none;
margin: 0;
width: 10px;
}
<link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
<link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!--JS files-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<div class="row-fluid top-space-20">
<table class="table table-striped">
<thead>
<tr>
<th>Student ID</th>
<th>Student Name</th>
<th>Student Email</th>
<th>Department</th>
<th>Grade
<select class=".drop-down form-control" id="statusFilter">
<option value="">Student grade</option>
<option value="Grade A">A</option>
<option value="Grade B">B</option>
<option value="Grade C">C</option>
<option value="Grade D">D</option>
<option value="Grade E">E</option>
<option value="Grade F">F</option>
<option value="Grade G">G</option>
</select>
</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
我保持宽度很小,我尝试了 display:inline.Nothing 工作。没有任何效果。所以我需要的是我的下拉菜单应该只在箭头和成绩标题之外可见。不在成绩标题下方
解决方案
推荐阅读
- reactjs - 如何使用 typescript 模拟或断言 window.alert 是否已在 React & Jest 中触发?
- javascript - 如何阻止用户输入一些字符来输入?
- python - Scrapy 204 没有收到数据
- javascript - 在主页上时使导航透明,否则默认
- javascript - 如何使用 jquery 和 javascript 创建自动向下滚动效果?
- python - 如何在循环中使用 i 来产生差异?
- c - 从服务器发送到客户端的文件在 c 中损坏
- scikit-learn - 向决策树添加正确的标签
- javascript - readAsDataURL() 将其更改为图像 url
- pass-by-reference - 当我们在这个函数中传递值结果时会发生什么?