JSP设置网站favicon.ico

版权声明:本文为博主原创文章,欢迎指正或者转载。 https://blog.csdn.net/ThinkPet/article/details/84328533

        favicon.ico中文名称是网站头像。在我们的网站建设中,为网站打造一个契合网站主题的个性化标志则是必需的,这直接关系到能否成功地塑造网站的品牌。这从某些角度看仍在网站推广的范畴之内,而欲取得成功,不仅包括良好的页面设计、令人印象深刻的网站Logo,也包括favicon

关键代码

<link rel="shortcut icon" href="favicon.ico" />

在线制作favicon.ico

https://tool.lu/favicon/

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="shortcut icon" 
   href="${pageContext.request.contextPath }/resources/images/favicon.ico"
   type="image/x-icon" >
   
</head>
<body>
	<form action="${pageContext.request.contextPath }/frontUser/select" method="post">
		输入用户名:<input type="text" name="uname"/><br>
		<input type="submit" value="提交"/>
	</form>
</body>
</html>

猜你喜欢

转载自blog.csdn.net/ThinkPet/article/details/84328533