响应 table / bootstrap 在移动视图中显示模糊
Responsive table of bootstrap showing blur in mobile view
我正在使用 Bootstrap 3.3.7。当我为 table 使用 'table-responsive' class 时,它在桌面视图中显示清晰且正确,但在移动视图中,它显示模糊文本。文字显示不清晰
<div class="table-responsive">
<table class="table">
<tr>
<th> Sr.No </th>
<th> Company Name </th>
<th> Contact No. </th>
<th> Address </th>
</tr>
<tr>
<th> 1 </th>
<th> ABC </th>
<th> 1234567890 </th>
<th> India </th>
</tr>
<tr>
<th> 2 </th>
<th> XYZ </th>
<th> 0123456789 </th>
<th> India </th>
</tr>
</table>
</div>
我想要那个,它在移动设备上显示 table 的清晰视图,就像桌面视图一样。
.table-responsive {
min-height: .01%;
overflow-x: auto;
border: 0px !important;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table">
<tr>
<th> Sr.No </th>
<th> Company Name </th>
<th> Contact No. </th>
<th> Address </th>
</tr>
<tr>
<th> 1 </th>
<th> ABC </th>
<th> 1234567890 </th>
<th> India </th>
</tr>
<tr>
<th> 2 </th>
<th> XYZ </th>
<th> 0123456789 </th>
<th> India </th>
</tr>
</table>
</div>
</div>
</div>
</div>
</body>
</html>
我不确定它看起来模糊的确切原因,但是当我删除边框形式时 .table-responsive
它起作用了。
我正在使用 Bootstrap 3.3.7。当我为 table 使用 'table-responsive' class 时,它在桌面视图中显示清晰且正确,但在移动视图中,它显示模糊文本。文字显示不清晰
<div class="table-responsive">
<table class="table">
<tr>
<th> Sr.No </th>
<th> Company Name </th>
<th> Contact No. </th>
<th> Address </th>
</tr>
<tr>
<th> 1 </th>
<th> ABC </th>
<th> 1234567890 </th>
<th> India </th>
</tr>
<tr>
<th> 2 </th>
<th> XYZ </th>
<th> 0123456789 </th>
<th> India </th>
</tr>
</table>
</div>
我想要那个,它在移动设备上显示 table 的清晰视图,就像桌面视图一样。
.table-responsive {
min-height: .01%;
overflow-x: auto;
border: 0px !important;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table">
<tr>
<th> Sr.No </th>
<th> Company Name </th>
<th> Contact No. </th>
<th> Address </th>
</tr>
<tr>
<th> 1 </th>
<th> ABC </th>
<th> 1234567890 </th>
<th> India </th>
</tr>
<tr>
<th> 2 </th>
<th> XYZ </th>
<th> 0123456789 </th>
<th> India </th>
</tr>
</table>
</div>
</div>
</div>
</div>
</body>
</html>
我不确定它看起来模糊的确切原因,但是当我删除边框形式时 .table-responsive
它起作用了。