【发布时间】:2017-04-29 02:53:52
【问题描述】:
我正在使用引导程序基础 css 来设置我的表格样式。但是,在 Chrome 上,我无法在表格中输入任何内容。我也将其更改为复选框,但没有任何效果。
我已经在 Safari 和移动设备上尝试过,并且输入有效。我没有使用任何额外的 CSS。我的基础 css 是主题 SBAdmin2,我使用的是 bootstrap css 3.3.7。
我使用 CodeIgniter 作为我的框架。我希望有人可以提供帮助或有人以前遇到过这种情况。
这是我的代码
<div class="row">
<div class="row col-md-6">
<?php echo form_open_multipart('Events/Two/Search');?>
<div class="input-group">
<input type="text" name="search" id="search" class="form-control" placeholder="Search e.g. John Cena">
<span class="input-group-btn">
<button type="submit" class="btn btn-primary">
<i class="fa fa-search" aria-hidden="true"></i>
</button>
</span>
</div>
<?php echo form_close(); ?>
</div>
<div class="row col-md-12 table-responsive">
<?php echo form_open_multipart('Events/Two/Search');?>
<table class="table table-bordered">
<thead>
<tr>
<td></td>
<td>Name</td>
<td>Email</td>
<td>Phone Number</td>
<td>Address</td>
</tr>
</thead>
<tbody>
<?php
if(!empty($datatable)){
foreach ($datatable as $data){
?>
<tr>
<td><input type="email" name="email" id="email"/></td>
<td><?php echo $data->first_name." ".$data->last_name; ?></td>
<td><?php echo $data->email; ?></td>
<td><?php echo $data->phone_number; ?></td>
<td><?php echo $data->address;?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<?php echo form_close(); ?>
</div>
<div class="row col-lg-12">
<div class="pull-right">
<?php echo $links; ?>
</div>
</div>
<div class="row col-lg-12">
<div class="pull-right">
<input type="submit" class="btn btn-primary" value="Next">
</div>
</div>
</div>
【问题讨论】:
-
谢谢!我不知道引导列会这样做
-
一切正常。
-
如果工作正常,请在我的回答下方投票给我。
标签: html css twitter-bootstrap codeigniter