ecshop3.6公告页面打开如下,页面完全无效果,如下图。
经过简单美化后,有返回按钮,页面加以美化。如下图。
是不是要好看多了。简单修改几步即可。
修改文件 \appserver\resources\views\notice\mobile.php
为以下代码:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<!DOCTYPE html> < html >
< head >
< meta charset = "utf-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< meta name = "description" content = "" >
< meta name = "author" content = "" >
< title >商城公告</ title >
<!-- Bootstrap core CSS -->
< link rel = "stylesheet" href="<?=$_SERVER['SHOP_H5']?>/css/app.css" type="text/css" />
< link href = "//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel = "stylesheet" >
< style media = "screen" >
.page-header {
text-align: center;
}
img {
width: 100%;
}
</ style >
</ head >
< body >
< div >
< div class = "navbar-left hide-weixin" onclick = "javascript:history.go(-1);" role = "button" tabindex = "0" >
< img src="<?=$_SERVER['SHOP_H5']?>/image/nav-left.png">
< div >返回</ div >
</ div >
< div >
网站公告
</ div >
</ div >
<!-- Begin page content -->
< div style = "width:95%" >
< p ><?=$notice['content']?></ p >
</ div >
</ body >
</ html >
|
简单一步搞定 。