简体   繁体   中英

JQuery UI Tabs - CSS Styling for IE9

I'm hoping a css guru will be able to help me narrow down possible issues related to IE rendering for JQuery UI tabs. In Firefox and Chrome, my tabs render like so:

在Firefox中渲染的标签

Rendering in Internet Explorer 9 fails pretty bad:

在此处输入图片说明

The Map and Field tabs are no longer sized to fit the parent container on the left side of the screen, and the tab headers fit the entire width of the parent container. Further, many of the JQuery UI events no longer fire, such as when I click a button from within the pane. I am not receiving any error messages from within the IE developer console, so I'm a bit lost as to why this is failing.

Found the problem. Nested within my jQuery UI tabs were several jQuery UI dialog boxes that were hidden on load. When they are loaded in Chrome and Firefox, their dimensions are ignored and jQuery UI renders the rest of the contained elements correctly. In Internet Explorer 9.0.8112.16421, the height of these elements are incorporated into the tab views, so that other elements are resized incorrectly, despite any element styling.

Moving these elements outside of the tab container solves the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM