马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
) v7 O. v7 e0 E; ?/ I" |3 w
; n, E, ]+ Q/ VX3.1 升级到 X3.2 后宽窄风格失效经查是css加载问题 文件位置在/template/default/common/header.htm 查找源码发现 - <!--{if widthauto()}-->
' h8 r3 y: T) ` - <link rel="stylesheet" id="css_widthauto" type="text/css" href='{$_G['setting']['csspath']}{STYLEID}_widthauto?{VERHASH}' />* Y& g0 s5 ~3 l5 z
- <script type="text/javascript">HTMLNODE.className += ' widthauto'</script>' M6 o, E- Z! q, g
- <!--{/if}-->
复制代码 % J9 e4 X+ L8 x: A9 ?( d: c h% [
0 L$ r* f' E& D1 a& Z
将源码改成如下就OK了(红色部分是需要添加的,也就是需要修改的) 2 l4 W0 _2 |: Z: z1 m/ y: c0 I
- <!--{if widthauto()}-->
4 L( k% m6 d6 ] i# o$ V2 p9 J4 Y9 x5 H4 ~ - <link rel="stylesheet" id="css_widthauto" type="text/css" href='{$_G['setting']['csspath']}{STYLEID}_widthauto<font color="#ff0000">.css</font>?{VERHASH}' />' ?7 I& { M& m
- <script type="text/javascript">HTMLNODE.className += ' widthauto'</script>0 v" ? f3 ^( u: U( }7 l
- <!--{/if}-->
复制代码
8 i9 i" P( U! N6 R8 p8 C' q. ~* g8 a4 X) T, d
% O; s8 {( {5 e+ V4 F
|