css外部链接样式表好像没反应
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
html>
<html>
<head>
<meta charset="UTF-8">
<title>样式表css的应用title>
<style type="text/css">
h1{
color:green;
text-align: center;
font-style: italic;
font-family: 楷体;
font-size: x-large
}
style>
head>
<body>
<h1>样式表的应用,应用样式h1h1>
body>
html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
html>
<html>
<head>
<meta charset="UTF-8">
<title>样式表CSS应用title>
<link rel = stylesheet type = "text/css" href = "ex05 - 010_1.css">
<link rel = stylesheet type = "text/css" href = "ex05 - 010_2.css">
<link rel = stylesheet type = "text/css" href = "NewFile7.jsp.css">
head>
<body>
<h1>样式表的应用,应用样式h1h1>
body>
html>
无论怎么删减下面(newfile7是上面放的第一段代码,前两个是书上的,我也不知道是哪里的url)
= stylesheet type = "text/css" href = "ex05 - 010_1.css">
= stylesheet type = "text/css" href = "ex05 - 010_2.css">
= stylesheet type = "text/css" href = "NewFile7.jsp.css">
都是
这是newfile7的运行结果
为啥newfile8运行出来不会变格式呀.
那你审查元素 看看 样式 加上了没 。没加上说明 外部样式 引入错误,还可以看看 network里 css 是不是 404