LVel / ie7-js

Automatically exported from code.google.com/p/ie7-js
0 stars 0 forks source link

Exclude custom DOM from hack. #223

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
Expect to exclude several DOM from this hack, since it know to have cause
some problem to my HTML, or maybe other people HTML too

What version of the product are you using? On what operating system?
Beta 2 3.0. The problem cause on all IE 6 7 8 Standard mode if I turn on
the script on this:
BODY.bp .bgwrap {
    DISPLAY: block;
    BACKGROUND: #eeeeee;
    HEIGHT: 136px;
    TEXT-ALIGN: left
}
body.bp .bgwrap #wrap {
margin:0 auto;
overflow:visible;
position:relative;
width:996px;
}

<div class="bgwrap">
<div id="wrap">It's not center/wrong center place</div>
</div>

Please provide any additional information below.
The problem is not exist if the script is turn off in all the browser
above, but if turn on, the problem exist. Inspect in IETester show that it
include a tag <!> that make the HTML tree become bgwrap -> <!> -> wrap
instead of bgwrap -> wrap.
and also it overide the margin: 0 auto; of the #wrap to margin-left and
right: 0; 
What should I do?

Original issue reported on code.google.com by duc%ducd...@gtempaccount.com on 12 Feb 2010 at 2:08

GoogleCodeExporter commented 8 years ago
body.bp .bgwrap #wrap {
    margin-left: -996px
    position: absolute
}

after hours of hacking on IE CSS, i have find out a way to make this work with 
IE 6
and 7 using my custom IE CSS. I have to include the code above and have no clue 
what
it does after random trial and error testing.

Please check out on this issue.

Thank you

Original comment by duc%ducd...@gtempaccount.com on 12 Feb 2010 at 2:52

GoogleCodeExporter commented 8 years ago
Can you provide a test page please?

Original comment by dean.edw...@gmail.com on 14 Feb 2010 at 12:40