2
사진웹킷 높이 차이
CSS
#sub-nav {
position: absolute;
top: 207px;
left: 16px;
width: 192px;
z-index: 4;
background: url('../img/transparent.png');
overflow: hidden;
}
#logo-buttons-bg {
position: relative;
padding: 0 0 60px 0;
width: 208px;
//background-gradient
z-index: 8;
}
#logo-buttons-bg ul {
padding: 8px 21px;
list-style-type: none;
}
jQuery를 :
var containerHeight = $("#logo-buttons-bg ul").height();
$("#sub-nav").height(containerHeight - 25);
어떻게 해결할 수 있습니까? var containerHeight
에 다른 요소를 추가하려고 시도했습니다. 25
을 특정 높이의 다른 CSS 요소로 변경했습니다. 결과는 정확히 동일합니다.
Normalize.css 내가 FF와 크롬과 유사한 문제가 있었다
(참) .outerHeight로 전환되었다 (http://www.cssreset.com/)? – Vucko
어떻게 html 코드가 보이나요? – Krab
jsfiddle을 제공해주세요. –