Commit fa2de6f0 by HTML5-侯张振

修改 每一列希望有固定宽度,字数超了折行展示

parent 3a5f688f
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
<td><?php echo $customer['company_name'];?></td> <td><?php echo $customer['company_name'];?></td>
<td><?php echo $customer['building_title'];?></td> <td><?php echo $customer['building_title'];?></td>
<td><?php echo $customer['user_name']?></td> <td><?php echo $customer['user_name']?></td>
<td><?php echo $customer['remark']?></td> <td class="hzz-remark"><?php echo $customer['remark']?></td>
</tr> </tr>
<?php <?php
endforeach; endforeach;
...@@ -175,6 +175,18 @@ ...@@ -175,6 +175,18 @@
background-color: #428bca; background-color: #428bca;
border-color: #428bca; border-color: #428bca;
} }
.hzz-remark{
display: inline-block;
width: 100px;
height:auto;
word-wrap: break-word;
word-break: break-all;
border-left: none !important;
border-right: none !important;
border-bottom: none !important;
text-align: center;
background-color:#fff !important;
}
</style> </style>
<div class="pagination-box"> <div class="pagination-box">
<div class="row"> <div class="row">
......
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<!-- <td><?php //echo $customer['restatus'] == 4 ? '是' : '否';?></td> --> <!-- <td><?php //echo $customer['restatus'] == 4 ? '是' : '否';?></td> -->
<td><?php echo $customer['agent_name'] ? : $customer['partner_name'];?></td> <td><?php echo $customer['agent_name'] ? : $customer['partner_name'];?></td>
<td><?php echo $customer['partner_user_mobile'];?></td> <td><?php echo $customer['partner_user_mobile'];?></td>
<td><?php echo $customer['remark'];?></td> <td class="fenxiao-remark"><?php echo $customer['remark'];?></td>
</tr> </tr>
<?php <?php
endforeach; endforeach;
...@@ -169,6 +169,20 @@ ...@@ -169,6 +169,20 @@
</div> </div>
<!-- END CONTAINER --> <!-- END CONTAINER -->
<!-- BEGIN FOOTER --> <!-- BEGIN FOOTER -->
<style>
.fenxiao-remark{
display: inline-block;
width: 100px;
height:auto;
word-wrap: break-word;
word-break: break-all;
border-left: none !important;
border-right: none !important;
border-bottom: none !important;
text-align: center;
background-color:#fff !important;
}
</style>
<?php $this->load->view('admin/footer');?> <?php $this->load->view('admin/footer');?>
<!-- BEGIN PAGE LEVEL PLUGINS --> <!-- BEGIN PAGE LEVEL PLUGINS -->
<link rel="stylesheet" href="<?php echo APPLICATION_PATH ?>/assets/plugins/data-tables/DT_bootstrap.css"/> <link rel="stylesheet" href="<?php echo APPLICATION_PATH ?>/assets/plugins/data-tables/DT_bootstrap.css"/>
...@@ -197,7 +211,7 @@ ...@@ -197,7 +211,7 @@
language: 'cn', language: 'cn',
autoclose:true, autoclose:true,
}); });
$('input[type="reset"]').click(function(){ $('input[type="reset"]').click(function(){
$('input[type="text"]').attr('value',''); $('input[type="text"]').attr('value','');
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment