给你的网站或平台设置一个icon

来源:互联网 发布:vmware安装ubuntu禁用 编辑:程序博客网 时间:2024/06/06 08:24

选择一个好的图片,并把图片格式转换为.ico格式的,然后在你的网页的<head>标签内加上这两段代码

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
    <%@ include file="../pages/common/master.jsp"%>
    <title>*****</title>
    <!-- Bootstrap -->
    <link href="${ctx}/resources/css/bootstrap.min.css" rel="stylesheet">
    <link href="${ctx}/resources/css/style.css" rel="stylesheet">
    <link rel="icon"  href="${ctx}/resources/image/***.ico" type="image/x-ico"/>
    <link rel="shortcut icon" href="${ctx}/resources/image/****.ico"/>
</head>

0 0
原创粉丝点击