刚学用ASP.NET2008做网页,想调用外部CSS文件,总无法调用,代码如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %>
<!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=gb2312" />
<link rel="stylesheet" href="stylesheet.css" type="text/css" />
<title>三列左右固定宽度中间自适应——AA25.CN</title>
</head><body>
<div id="left">左列</div>
<div id="center">中列——AA25.CN</div>
<div id="right">右列</div>
</body>
</html>外部CSS文件叫stylesheet.css,代码如下:
body {margin:0px;
}
#left {
background-color: #E8F5FE;
border: 1px solid #A9C9E2;
height: 400px;
width: 200px;
position: absolute;
top: 0px;
left: 0px;
}
#center {
background-color: #F2FDDB;
border: 1px solid #A5CF3D;
height: 400px;
margin-right: 202px;
margin-left: 202px;
}
#right {
background-color: #FFE7F4;
border: 1px solid #F9B3D5;
height: 400px;
width: 200px;
position: absolute;
top: 0px;
right: 0px;
}P{background-color:#0000ff;font-size:6pt;color:#ffff00;}
刚学习WEB,请帮忙看看,哪里不对,谢谢了
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %>
<!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=gb2312" />
<link rel="stylesheet" href="stylesheet.css" type="text/css" />
<title>三列左右固定宽度中间自适应——AA25.CN</title>
</head><body>
<div id="left">左列</div>
<div id="center">中列——AA25.CN</div>
<div id="right">右列</div>
</body>
</html>外部CSS文件叫stylesheet.css,代码如下:
body {margin:0px;
}
#left {
background-color: #E8F5FE;
border: 1px solid #A9C9E2;
height: 400px;
width: 200px;
position: absolute;
top: 0px;
left: 0px;
}
#center {
background-color: #F2FDDB;
border: 1px solid #A5CF3D;
height: 400px;
margin-right: 202px;
margin-left: 202px;
}
#right {
background-color: #FFE7F4;
border: 1px solid #F9B3D5;
height: 400px;
width: 200px;
position: absolute;
top: 0px;
right: 0px;
}P{background-color:#0000ff;font-size:6pt;color:#ffff00;}
刚学习WEB,请帮忙看看,哪里不对,谢谢了
解决方案 »
- 誰有這個效果的js菜單
- 母版页中,如何将两个内容页中的连接起来
- 点击'提交'按钮后 RangeValidator 的 ErrorMessage 显示出来了,如何避免这种情况
- 怎样在给ACCESS加用户名、密码?
- 极其奇怪的问题!大家进来看看
- 求助!!!
- 在局域网里如何判断服务器上是否存在活动目录?
- MVC4的程序,IE11访问使用时中间有一串代码,而其它浏览器没有
- .net web实现从服务器的制定目录下下载文件(要有进度条的)
- 为什么这样不对!?异常详细信息: System.InvalidCastException: 指定的转换无效。
- 求asp.net(C#) 模板
- 如何将iframe中的分页gridview导出execel
你这样的写法就是了