我在aspx中这样写的:
//=========================================================================
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CADLeft.aspx.cs" Inherits="test" %>
<!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>
<title>test</title>
<meta name="Generator" content="EditPlus" />
<meta name="Author" content="" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
</head>
<body>
<html> //提示:验证(XHTML 1.0 Transitional): 元素“html”不能嵌套在元素“body”中。
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>连续向左滚动文字效果</title>
<style type="text/css">
<! //意外的字符序列。应输入样式规则的选择器
-- body
{
font-size: 9pt;
color: #000000;
}
a
{
color: #0000FF;
text-decoration: none;
}
-- ></style>
</head>
<body>
<div id="marquees" runat="server">
.....
</div>
<div id="templayer" style="position: absolute; left: 0; top: 0; visibility: hidden">
</div>
<script type="Text/JavaScript">
......
</body>
</html>
</body>
</html>
//=========================================================================
------解决方案--------------------------------------------------------
- HTML code
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CADLeft.aspx.cs" Inherits="test" %><!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" /> <title>连续向左滚动文字效果 </title> <style type="text/css"> <! //意外的字符序列。应输入样式规则的选择器 -- body { font-size: 9pt; color: #000000; } a { color: #0000FF; text-decoration: none; } -- > </style> </head> <body> <div id="marquees" runat="server"> ..... </div> <div id="templayer" style="position: absolute; left: 0; top: 0; visibility: hidden"> </div> <script type="Text/JavaScript"> ...... </body> </html>
------解决方案--------------------------------------------------------
<html> //提示:验证(XHTML 1.0 Transitional): 元素“html”不能嵌套在元素“body”中。
怎么能这样了
去掉
上面有一个html啊
------解决方案--------------------------------------------------------
你的代码估计是导出粘贴的,出了几个错
<html></html>
<body></body>
<head></head>
<title></title>
标签都只能有一对
样式表
<! //意外的字符序列。应输入样式规则的选择器
-- body
应写做
<!--
body
{
}
------解决方案--------------------------------------------------------
<html> ...</html> //提示:验证(XHTML 1.0 Transitional): 元素“html”不能嵌套在元素“body”中。
== 去掉 <html> 和 </html>
<! //意外的字符序列。应输入样式规则的选择器
-- body
== <! --
body