改进异常页面

This commit is contained in:
yunwuxin
2016-06-29 15:10:43 +08:00
parent 0aa1994ce3
commit 73fdd13482
3 changed files with 33 additions and 2 deletions

View File

@@ -123,6 +123,26 @@
.line-error{
background: #f8cbcb;
}
.echo table {
width: 100%;
}
.echo pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border: 0;
border-radius: 3px;
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.echo pre > pre {
padding: 0;
margin: 0;
}
/* Exception Info */
.exception .message{
@@ -130,7 +150,7 @@
border: 1px solid #ddd;
border-bottom: 0 none;
line-height: 18px;
font-size:16px;
font-size:16px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
font-family: Consolas,"Liberation Mono",Courier,Verdana,"微软雅黑";
@@ -258,6 +278,9 @@
</style>
</head>
<body>
<div class="echo">
<?php echo $echo;?>
</div>
<?php if(\think\App::$debug) { ?>
<div class="exception">
<div class="message">