在“fieldset”元素的开始标记和结束标记符之间不能出现文本。是怎么回事啊?

来源:百度知道 编辑:UC知道 时间:2024/09/22 01:04:52
是在visual studio中运行的
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Theme="mytheme" Inherits="_Default" %>

<!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 runat="server">

这是源码!
我只是不明白,为什么照着书写还是会错呢?
<title>示例6-1</title>
</head>

<body>
<form id="form1" runat="server">
<div>
<fieldset style="width:240px">
<legend&g

检查一下你的HTML标记<fieldset>
fieldset标记在网页中可以实现WinForm中的GroupBox般的边框效果
把相关代码贴出来看一下子

我把你贴出来的代码试着运行了一下子,没有问题呀:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script language="javascript" type="text/jscript">
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<fieldset style="width:240px">
<legend>创建皮肤文件</legend>
设置了默认皮肤的TextBox
<asp:TextBox runat="server" ID="TextBox1"></asp:TextBox><br /><br />
设置了命名皮肤的TextBox
<asp:TextBox runat="server" ID="TextBox2" SkinID="blue&quo