Jump to content

[已经解决] 我要如何取消子目录下的目录列表与图片? 请看附图


Recommended Posts

我要如何取消子目录下的目录列表与图片?如图中的品牌列表很占页面的空间想取消他 我该如何做呢? 谢谢! 请看附图

19743_Q3JJeZU0th2A3khTbCvZ_t

Share this post


Link to post
Share on other sites

指的是Subcategories部分吗?想隐藏该部分还是想让系统不保留这部分呢?从截图来看,既然是定制模板,为什么不用CSS来调整这部分布局呢?

Share this post


Link to post
Share on other sites

1. 备份后在/themes/该模板目录/css/global.css 第1374行附近加入:

body#category div#subcategories { display: none }



2. 保存,测试。

Share this post


Link to post
Share on other sites

谢谢, 在你的帮助下我最后找到了问题点,我的global.css 不是在1374行,我后来找到这个代码把它display:inline; 修改成display: none ,就OK了。
/* category.tpl */
h2.category_title { font-size: 1.3em; }
body#category #subcategories li {
margin-right:10px;
}
div.cat_desc { margin:0 1em; }

body#category div#subcategories ul.inline_list li a img {
display:inline;
}

Share this post


Link to post
Share on other sites
  • 2 weeks later...
谢谢, 在你的帮助下我最后找到了问题点,我的global.css 不是在1374行,我后来找到这个代码把它display:inline; 修改成display: none ,就OK了。
/* category.tpl */
h2.category_title { font-size: 1.3em; }
body#category #subcategories li {
margin-right:10px;
}
div.cat_desc { margin:0 1em; }

body#category div#subcategories ul.inline_list li a img {
display:inline;
}
学习了。谢谢

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More