php - 如何在php中显示图标

标签 php html

目前我在前端显示文件名,但实际上我想显示下载图标而不是文件名。

那么我如何在 php 中用一些下载图标替换 $filename。

return $strHref = "<a href ='".$downloaded_filepath."'>" . $fileName . "</a>";

最佳答案

自定义图片

return $strHref = "<a href ='".$downloaded_filepath."'><img src='imgpath'></a>";

在 Bootstrap 中

return $strHref = "<a href ='".$downloaded_filepath."'><i class='fa fa-download'></i></a>";

关于php - 如何在php中显示图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52441874/

相关文章:

php - 库存系统 - 跟踪零件状态和位置的正确方法

php - 如何从 MySQL 中的表的列中获取特定项目并使用它来使另一个 <select> 更改其可见性

php - 使用 php 创建登录页面 - 看不到错误所在

html - 溢出属性和固定高度

html - 600px 以下的 margin css 问题

php - 无法正确安装XAMPP或无法启动apache和mysql

php - 如何将mysql中日期格式的默认插入更改为d M yy?

HTML & CSS : two separate issues desire one answer :)

html - 我需要帮助将文本居中放置在 CSS 网格的中心

html - 在 React 组件中使用 <a> 标签定位导航