Ecshop有一个商品对比功能,是链接到正确的货物在你点击添加货物之前比较框架,大多数时候,我们都需要修改页面和页面的风格是我们更美丽。
方法修改比较页面风格:
比较页面的风格没有CSS,但在比较。Js中的Js文件夹目录Js文件。
首先,你可以找到的代码自定义风格:
- 第一处:
- this.compareBox = document.createElement(“DIV”);
- var submitBtn = document.createElement(“INPUT”);
- this.compareList = document.createElement(“UL”);
- this.compareBox.id = “compareBox”;
- this.compareBox.style.display = “none”;
- this.compareBox.style.top = “200px”;
- this.compareBox.align = “center”;
- this.compareList.id = “compareList”;
- 第二处:
- var li = document.createElement(“LI”);
- var span = document.createElement(“SPAN”);
- span.style.overflow = “hidden”;
- span.style.width = “100px”;
- span.style.height = “20px”;
- span.style.display = “block”;
- span.innerHTML = this.data[key].n;
- li.appendChild(span);
- li.style.listStyle = “none”;
- var delBtn = document.createElement(“IMG”);
- delBtn.src = “themes/default/images/drop.gif”;
- delBtn.className = key;