---
title: "ie6 overflow-y:auto BUG修复"
author: "zhoon"
date: "2012-06-06T13:17:36Z"
tags: []
categories: ["Web前端"]
slug: "ie6-overflow-y-auto-bug"
draft: false
lastmod: "2012-06-06T13:17:36Z"
id: 1553201
url: "https://zhoon.iteye.com/blog/1553201"
---

ie6里面如果设置元素为横向滚动条隐藏，竖向滚动条显示，如果改原始内有元素设置position:relative;或者position:absolute;样式，那么ie6里面的竖向滚动条就会失效。 解决办法：设置该元素为position:relative;top:0;left:0;即可解决次BUG！