html页面,文件名为xie.html,内容如下:
<!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>companyname-pagename</title>
<meta http-equiv="content-language" content="en-us"/>
<meta http-equiv="imagetoolbar" content="no"/>
<meta name=mssmarttagspreventparsing" content="ture"/>
<meta name="description" content=“description"/>
<meta name="keywords" conent="keywords"/>
<meta name="author" conent="enlighten designs"/>
<style type="text/css" media="all">@import"css/xie.css";</style>
</head>
<body>
<div id=xie1">
hello world
</div>
</body>
</html>
css文件,名字是xie.css,内容如下:
@charset "utf-8";
/* xie-123 */
#xie1{
width:760px;
marign:auto;
background:red;
}
问题描述:
本意是想出现一个红条,内容是hello world。但是现在只有文字,没有背景色。等于css根本没调用。
大师们,帮忙指点一下,怎么修改?
<!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>companyname-pagename</title>
<meta http-equiv="content-language" content="en-us"/>
<meta http-equiv="imagetoolbar" content="no"/>
<meta name=mssmarttagspreventparsing" content="ture"/>
<meta name="description" content=“description"/>
<meta name="keywords" conent="keywords"/>
<meta name="author" conent="enlighten designs"/>
<style type="text/css" media="all">@import"css/xie.css";</style>
</head>
<body>
<div id=xie1">
hello world
</div>
</body>
</html>
css文件,名字是xie.css,内容如下:
@charset "utf-8";
/* xie-123 */
#xie1{
width:760px;
marign:auto;
background:red;
}
问题描述:
本意是想出现一个红条,内容是hello world。但是现在只有文字,没有背景色。等于css根本没调用。
大师们,帮忙指点一下,怎么修改?