jQuery DOCTYPE CSS bug with IE 6 & 7 - Quirks Mode -
OK strange behavior when it should work:
The problem is whether I do not declare a declaimer CSS works in IE 6 & amp; 7 But if I declare DOCTYPE then it does not work. Why?
jQuery:
$ ('tr: first-hair'). Children () CSS '(' width ': settings.minWidth +' Px ',' height ': settings.tableHeaderHeight +' px ',' overflow ':' hidden ',' white-space ':' nowrap ',' color ':' Blue '});
- Please enable Firefox and IE 6 & amp; 7 To see table headers difference
- Please enable Firefox and IE6 & amp; 7 to see table headers difference
I'm declaring DOCTYPE:
Any work around? Tip:
Solution, Yeh !!!
jQuery
// This table adds a div tag around the header text / - Space bug in IE white standard mode $ ('table.className tr th') . WrapInner ("& lt; div class = 'ie_correct_header_whitespace' & gt; & lt; / div & gt;");
css
.iffile_ar_switspace {white-space: now ipod; Firstly, I seriously recommend that you work it in standard mode. Able to do Trusting Quiz mode is not a very healthy approach to 'just work' any layout. You can wrap your content in a block element, let's say a div element, and then your table header.