Fixed positioned header persists on desktop but not on mobile?
问题 If you narrow the browser you will see a .header-mobile element. It is fixed positioned. And it persists on desktop but on mobile it's just left on the top. This is the mobile CSS: @media handheld, only screen and (max-width: 767px) { #header, #header-fixed { display: none; } #header-mobile { background: url(images/header-fixed-bg.png) repeat-x 0 0; border-bottom: 1px solid #111; display: block; position: fixed; top: 0; width: 100%; -webkit-box-shadow: rgba(0,0,0,0.3) 0 0 4px; -moz-box-shadow