Authored by wuxiao

添加开发测试环境的左上角提示

1 <header> 1 <header>
2 <div class="headerwrapper"> 2 <div class="headerwrapper">
3 <div class="header-left"> 3 <div class="header-left">
4 - <a href="javascript:;" class="logo"> 4 + <a href="/" class="logo">
  5 + <?php if (YII_ENV == 'prod'):?>
5 <img src="/images/logo.png" alt="" /> 6 <img src="/images/logo.png" alt="" />
  7 + <?php else:?>
  8 + <strong>开发/测试环境</strong>
  9 + <?php endif;?>
6 </a> 10 </a>
7 <div class="pull-right"> 11 <div class="pull-right">
8 <a href="" class="menu-collapse"> 12 <a href="" class="menu-collapse">
@@ -111,6 +111,7 @@ a:focus { @@ -111,6 +111,7 @@ a:focus {
111 display: inline-block; 111 display: inline-block;
112 margin-top: 5px; 112 margin-top: 5px;
113 float: left; 113 float: left;
  114 + color:white;
114 } 115 }
115 116
116 .headerwrapper .header-left .menu-collapse { 117 .headerwrapper .header-left .menu-collapse {