php - Adding icon to title bar
问题描述
I am trying to put an icon in my website title tag. But its not loading in chrome but is loading in mozilla. i don't know what i am doing wrong?
The link for the image is working correctly.
<head>
<title>Flats in Kochi </title>
<link rel="shortcut icon" href="<?php echo base_url();?> images/melon.ico" type = "image/x-icon"/>
</head>
解决方案
首先,关闭 php 标签,正如 Swati 所提到的。
二、/
在php代码后面加上,所以link标签应该是这样的:
<link rel="shortcut icon" href="<?php echo base_url(); ?>/images/melon.ico" />
希望它可以帮助你。
推荐阅读
- java - Java REGEX,从字符串中删除两种不同类型的注释
- apple-push-notifications - 无法发送 iOS 推送通知 - 400 BadDeviceToken 响应
- javascript - 在 Jquery html 中的特定时间范围后启用按钮?
- angular - 特定输入的 Angular Material 日期选择器格式
- reactjs - react-native-svg:无法从 xml 创建 svg
- vb.net - 从互联网获取更新的 BTC 值
- swift - 关于 CLOSURE 的 SWIFT 语法问题
- flutter - 如何为外部类创建页面视图
- r - 更新 R 后 paste0 损坏
- python - 了解 Kafka 结束偏移量和已提交偏移量