문제

I have an object inside a <div> that is displaying a pdf. This is done within a Content Editor Web Part. My drop down navigation menu "blinks" whenever it is over the <div>. The drop down blinks in Internet Explorer 6 and is hidden behind the <div> in Chrome. Is there any way to fix this blinking and hiding? (I have tried z-index)

<div style="z-index:-999">
<object data="page.pdf#navpanes=0" type="application/pdf" width="100%" height="900"></object>
</div>
도움이 되었습니까?

해결책

You need to specify a low z-index inline on the object itself, and make sure your class for your li's has a higher z-index. Object's don't inherit from the parent object in the DOM, so you must specify inline on the object tag.

<object data="page.pdf#navpanes=0" type="application/pdf" width="100%" height="900" style="z-index: 1;"></object>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top