我想问你们中是否有人知道将链接更改为图标的语法,点击后会自动下载到CodeIgniter中。
我有一个下载链接,但我不知道在哪里插入图标,在哪里以及如何插入?任何知道的人请教我谢谢
下载的语法我得到
<th field="file" width="50" sortable="true" data-options="formatter:function(val){
return '<a href=''<?php echo base_url(); ?>uploads/'+val+''' target=''_blank''>' + val + '</a>';
}">File</th>
像这样修改类
<style>
.link_with_image{
background-image: url('your desired image');
height: 20px;
width: 20px;
display: inline-block;
background-repeat: no-repeat;
}
</style>
您可以根据需要更改的宽度和高度