.php文件中如何引入css样式
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>多用户留言系统首页布局</title>
<link rel="stylesheet" type="text/css" herf="style/1/basical.css">
</head>
<body>
<div id="header">header</div>
<div id="list">lsit</div>
<div id="user">user</div>
<div id="pics">pics</div>
<div id="footer">footer</div>
</body>
</html>
---------------------------------下面是引入的 basical.CSS------------------------
@CHARSET "UTF-8";
*{
padding:0;
margin:0;
}
body{
width:960;
margin: 0 auto;
background: #fff;
}
#header{
width:auto;
height:150px;
boder:2px solid #ccc;
margin: 10px;
}
#list{
with:600px;
height:514px;
boder:2px solid #ccc;
float:right;
}
#user{
width:340px;
height:250px;
border:2px solid #ccc;
float:left;
margin:0 0 10px 0;
}
#pics{
width:340px;
height:250px;
border:2px solid #ccc;
float:left;
}
引入不了,不知道什么原因,求大神指点! 展开
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>多用户留言系统首页布局</title>
<link rel="stylesheet" type="text/css" herf="style/1/basical.css">
</head>
<body>
<div id="header">header</div>
<div id="list">lsit</div>
<div id="user">user</div>
<div id="pics">pics</div>
<div id="footer">footer</div>
</body>
</html>
---------------------------------下面是引入的 basical.CSS------------------------
@CHARSET "UTF-8";
*{
padding:0;
margin:0;
}
body{
width:960;
margin: 0 auto;
background: #fff;
}
#header{
width:auto;
height:150px;
boder:2px solid #ccc;
margin: 10px;
}
#list{
with:600px;
height:514px;
boder:2px solid #ccc;
float:right;
}
#user{
width:340px;
height:250px;
border:2px solid #ccc;
float:left;
margin:0 0 10px 0;
}
#pics{
width:340px;
height:250px;
border:2px solid #ccc;
float:left;
}
引入不了,不知道什么原因,求大神指点! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询