注册 登录
编程论坛 ASP.NET技术论坛

asp.net2页面输出的html代码不换行、未格式化问题

ganzhou999 发布于 2010-02-27 20:20, 763 次点击
aspx页面代码如下:
<html xmlns="http://www.
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="style/common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/Scripts/a.js"></script>
</head>


在cs里设置页面标题、keywords、description,执行后输出的代码换行已经没有了,有没有办法对输出的html代码进行格式化,使得每段代码间有换行?


输出的html代码如下:
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>
    首页_公司
</title><link href="style/common.css" rel="stylesheet" type="text/css" />    <script type="text/javascript" src="/Scripts/a.js"></script>
<meta name="keywords" content="a,b,c" /><meta name="description" content="abcdefghijklmn" /></head>
0 回复
1