상품 리스트 타입 변경시 원본으로 돌아가는 방법 정보
상품 리스트 타입 변경시 원본으로 돌아가는 방법본문
sct10, 20 등에서 에서 40으로 넘어가는데 style 값이 그대로 유지 됩니다.
shop.list.js 에서 31번째 줄
$el.each(function() {
$(this).removeAttr("style");
if($(this).data("style")) {
$(this).attr("style", $(this).data("style"));
}
});
를
$el.each(function() {
$(this).removeAttr("style");
if($(this).data("style")) {
$(this).attr("style", $(this).data("style"));
}
$(this).removeAttr('style');
});
을 넣어주시면 해당되는 리스트에 모든 스타일 값이 제거 됩니다.
shop.list.js 에서 31번째 줄
$el.each(function() {
$(this).removeAttr("style");
if($(this).data("style")) {
$(this).attr("style", $(this).data("style"));
}
});
를
$el.each(function() {
$(this).removeAttr("style");
if($(this).data("style")) {
$(this).attr("style", $(this).data("style"));
}
$(this).removeAttr('style');
});
을 넣어주시면 해당되는 리스트에 모든 스타일 값이 제거 됩니다.
추천
1
1
댓글 1개
감사합니다.