码迷,mamicode.com
首页 > 其他好文 > 详细

测试代码高亮

时间:2015-07-11 18:12:33      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Detail.aspx.cs" Inherits="A_AdminFile_Detail" ValidateRequest="false" Debug="true" %>

<!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></title>
    <style type="text/css">
        *{
            margin: 0;
            padding: 0;
        }
        body {
            font-size: 16px;
            font-family: Arial Helvetica sana-serif,"宋体";
            color: #3e3e3e; margin:10px;
        } 
        .text{border:solid #ccc 2px; height:20px; line-height:20px; width:200px;font-family:Courier New; background-color:#C8E6CC}
        .btn{ height:35px; width:80px; font-size:16px; cursor:pointer;}
        .left{ float:left;}
        .right{ float:right;} 
    </style>
     
    <script src="jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">

        $(function () {
            var winHeight = 0;
            if (window.innerHeight)
                winHeight = window.innerHeight;
            else if ((document.body) && (document.body.clientHeight))
                winHeight = document.body.clientHeight;
            //alert(winHeight); //1440
            winHeight -= 70;
            $("#textDetail").css("height", winHeight);
        });
    </script>

</head>
<body>
<form id="form1" runat="server">
<div>

<pre>
    <% =ShowCode() %>
</pre>

</div>
</form>
</body>
</html>

 

测试代码高亮

标签:

原文地址:http://www.cnblogs.com/studingASPNet/p/4639077.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!