CSS 기반 드롭 다운 메뉴에서 작업 중입니다. 요소에 그라디언트를 추가 할 때까지 제대로 작동합니다. IE에서 무언가가 깨지기 때문에 서브 메뉴의 <li>
항목 위로 마우스를 가져 가면 메뉴 상자가 사라집니다. 여기 요소에 그라디언트를 추가하면 IE의 CSS 기능이 중단됩니다.
background-color: #c1ddf4; /* for non-css3 browsers */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#c1ddf4', endColorstr='#ffffff', GradientType=0); /* for IE */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #c1ddf4), color-stop(100%, #ffffff));/* for webkit browsers */
background: -moz-linear-gradient(top, #c1ddf4, #ffffff); /* for firefox 3.6+ */
background-image: -o-linear-gradient(#c1ddf4, #ffffff);
다음 예를 참조하십시오
OK(without gradient) 대 NOT OK(with gradient)
희망 http://www.colorzilla.com/gradient-editor/ CBC 그래디언트를 얻는 데 도움이됩니다 – Bongs
이것은 멋집니다! 그러나, 나는 여전히 메뉴에 영향을 미치는 동일한 문제를 다루고 있습니다. 나는 그것이 필터와 관련이 있다고 생각한다 : – santa