java jsp 提示黄线 Invalid location of tag (link)
答案:3 悬赏:60
解决时间 2021-02-17 14:11
- 提问者网友:黑米和小志
- 2021-02-17 08:37
java jsp 提示黄线 Invalid location of tag (link)
最佳答案
- 二级知识专家网友:青尢
- 2021-02-17 09:00
标签在w3c标准中是写在标签内的,你是不是写到别的地方去了,写在别的地方不是不能,只是不符合标准而已,通常不会影响到页面的展现和执行
追问:
追问:
全部回答
- 1楼网友:妄饮晩冬酒
- 2021-02-17 10:50
把这个标签移到<head>标签内部
- 2楼网友:煞尾
- 2021-02-17 09:15
<link rel="stylesheet" href="css/demo.css" type="text/css" />
追问:加了斜杠后还是一样
追答:你放的位置不对你把整个页面的头发出来
追问:
追答:<head>
<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="css/index.css" type="text/css" />
</head>
试一下不是header
我去买鱼了有问题下午回
追问:加了斜杠后还是一样
追答:你放的位置不对你把整个页面的头发出来
追问:
追答:<head>
<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="css/index.css" type="text/css" />
</head>
试一下不是header
我去买鱼了有问题下午回
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯