有没有高手帮忙,Editable写入固定html的问题

2016-07-07 14:55 来源:www.chinab4c.com 作者:ecshop专家

<!-- TemplateBeginEditable name="潮装百货彩妆三块" -->
<div class="I-tab I-tab-F35866" data-class="I-tab-F35866">

<div class="I-tab-hd">
<h2 class="I-tab-tit">潮流穿搭</h2>
<div class="I-tab-nav">
<a data-class="I-tab-F35866" class="I-tab-navCur" href="/1/" target="_blank">潮流女装</a>
<a data-class="I-tab-333333" href="/2/" target="_blank">精品男装</a>
<a data-class="I-tab-B23F89" href="/3/" target="_blank">鞋子箱包</a>
<a data-class="I-tab-534748" href="/4/" target="_blank">时尚配饰</a>
</div>
</div>

<div class="I-tab-bd">
<p class="I-col-mark"></p>
<ul class="I-tab-panel I-col clearfix" style="display:block">
<!-- #BeginLibraryItem "/library/cat_goods.lbi" -->
<!-- #EndLibraryItem -->
</ul>
<ul class="I-tab-panel I-col clearfix" style="display:none">
<!-- #BeginLibraryItem "/library/cat_goods.lbi" -->
<!-- #EndLibraryItem -->
</ul>
<ul class="I-tab-panel I-col clearfix" style="display:none">
<!-- #BeginLibraryItem "/library/cat_goods.lbi" -->
<!-- #EndLibraryItem -->
</ul>
<ul class="I-tab-panel I-col clearfix" style="display:none">
<!-- #BeginLibraryItem "/library/cat_goods.lbi" -->
<!-- #EndLibraryItem -->
</ul>
</div>
</div>
<!-- TemplateEndEditable -->
代码如上,这块是个切换部分,静态的内容不好放入lbi中,放在editable中会被替换掉,怎么做才能不被替换,求高手帮忙解答!

回答:
<!-- #BeginLibraryItem "/library/cat_goods.lbi" -->
<!-- #EndLibraryItem -->
这些肯定是不能放入编辑中的,不会编译!
你可以直接把cat_goods中的内容复制出来,替换成静态的,然后复制粘贴Li商品列表。改改url和src以及商品名称,完全在编辑器中静态化。