我认为这与链接有某种关系,但我迷失了。我应该在不到一分钟的时间内完成3个小时。我使用bootstrap作为框架。这是HTML:
<div class="col-xs-12 table">
<table class="table table-striped">
<tbody>
<tr>
<td><form method="GET"><input type="text" name="product-name[]" value="product name" class="form-control"disabled></td>
<td><input type="text" name="description[]" value="description" class="form-control"disabled></td>
<td><input type="text" name="qty[]" size="1" value="qty" class="form-control"disabled></td>
<td><input type="text" name="price-unit[]" size="2" value="price" class="form-control"disabled></td>
<td><input type="text" name="sub-total[]" size="2" value="subtotal" class="form-control"disabled></td>
</tr>
</tbody>
</table>
</div>
这是CSS:
.form-control[disabled], fieldset[disabled] .form-control {
cursor: default;
}
以下是负责人:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title> Submit Payment | SeaItManageIt</title>
<!-- Bootstrap -->
<link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<!-- NProgress -->
<link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
<!-- iCheck -->
<link href="../vendors/iCheck/skins/flat/green.css" rel="stylesheet">
<!-- bootstrap-progressbar -->
<link href="../vendors/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
<!-- JQVMap -->
<link href="../vendors/jqvmap/dist/jqvmap.min.css" rel="stylesheet"/>
<!-- bootstrap-daterangepicker -->
<link href="../vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
<!-- Custom Theme Style -->
<link href="../build/css/custom.min.css" rel="stylesheet">
<link href="../build/css/style.css" rel="stylesheet">
</head>
答案 0 :(得分:0)
您的代码似乎运行正常。按下面的“运行代码段”并自行查看:
默认光标是显示CSS代码预期的光标。
.form-control[disabled], fieldset[disabled] .form-control {
cursor: default;
}
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title> Submit Payment | SeaItManageIt</title>
<!-- Bootstrap -->
<link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<!-- NProgress -->
<link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
<!-- iCheck -->
<link href="../vendors/iCheck/skins/flat/green.css" rel="stylesheet">
<!-- bootstrap-progressbar -->
<link href="../vendors/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
<!-- JQVMap -->
<link href="../vendors/jqvmap/dist/jqvmap.min.css" rel="stylesheet"/>
<!-- bootstrap-daterangepicker -->
<link href="../vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
<!-- Custom Theme Style -->
<link href="../build/css/custom.min.css" rel="stylesheet">
<link href="../build/css/style.css" rel="stylesheet">
</head>
<div class="col-xs-12 table">
<table class="table table-striped">
<tbody>
<tr>
<td><form method="GET"><input type="text" name="product-name[]" value="product name" class="form-control"disabled></td>
<td><input type="text" name="description[]" value="description" class="form-control"disabled></td>
<td><input type="text" name="qty[]" size="1" value="qty" class="form-control"disabled></td>
<td><input type="text" name="price-unit[]" size="2" value="price" class="form-control"disabled></td>
<td><input type="text" name="sub-total[]" size="2" value="subtotal" class="form-control"disabled></td>
</tr>
</tbody>
</table>
</div>