Note that there are some explanatory texts on larger screens.

plurals
  1. POAdd/remove CSS will cause IE9 to increase the table's height
    primarykey
    data
    text
    <p>I add a mouse event to the HTML TR when user mouse-over/out the TR to change some CSS color. But in IE9 seems to have an issue that the table's height will keep increasing each time the CSS changed.</p> <p>Note: the issue only occurs when the horizontal scrollbar appears.</p> <p>Here is the HTML.</p> <pre><code>&lt;div style="width:100%;height:100%;"&gt; &lt;div class="grid"&gt; &lt;div class="grid-body"&gt; &lt;table width="100%" cellpadding="0" cellspacing="0" border="0" style="table-layout:fixed;"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td style="width:3040px;" class="item"&gt; &lt;div&gt; Please mouse-over me and out &lt;/div&gt; &lt;/td&gt; &lt;td class="item"&gt; &lt;div&gt; Please mouse-over me and out &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Here is the Javascript</p> <pre><code>$(document).ready(function (){ $('.item').mouseover(function () { $(this).parent().addClass("item-over"); }).mouseout(function() { $(this).parent().removeClass("item-over"); }); } ); </code></pre> <p>Here is the CSS setting</p> <pre><code> html, body {height:100%} body { margin: 0; padding: 0 5px; } div.grid { background: #DAE7F6; border: 1px solid #86A4BE; overflow: hidden; zoom: 1; } div.grid-body { background: red; border: 0; overflow: auto; width: 100%; position: relative; } tr.item-over { color: #6eadff; } </code></pre> <p>You can run the full example <a href="http://jsfiddle.net/jzWfP/" rel="nofollow noreferrer">here</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload