Ticket #10000 (closed bug: invalid)
the value got by calling position() in ie8
| Reported by: | yang163_yang@… | Owned by: | yang163_yang@… |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | offset | Version: | 1.6.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I got a problem.
<div style="text-align:center;margin-top:104px; width:740px; height:300px;">
<div class="switch_pic" style="position:relative; width:740px; height:300px; overflow:hidden;">
<div class="arrow_left" style="position:absolute; left:20px;top:135px; z-index:10; cursor:pointer;"><img src="images/left.png" /></div> <div class="arrow_right" style="position:absolute; left:700px;top:135px; z-index:10; cursor:pointer;"><img src="images/right.png" /></div> <ul class="content" style="width:10000px; position:absolute; margin:0;">
<li class="elem" style="float:left; width:740px; height:740px; overflow:hidden;"><img src="images/otherbg.jpg" width="740px" height="300px" /></li> <li class="elem" style="float:left; width:740px; height:740px; overflow:hidden;"><img src="images/subbg.jpg" width="740px" height="300px" /></li>
</ul>
</div>
</div>
I run '$(".content").animate({"left":"-740px"},"normal");' first.Then, '$(".content").css("left")' returns a string "-740px",but "$(".content").position()left?" returns a int value -739.This occurs in ie8.The value returned in firefox is -740.
Change History
comment:1 Changed 22 months ago by timmywil
- Owner set to yang163_yang@…
- Priority changed from undecided to low
- Status changed from new to pending
- Component changed from unfiled to offset
comment:2 Changed 21 months ago by trac-o-bot
- Status changed from pending to closed
- Resolution set to invalid
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket. Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, we've created this boilerplate: http://jsfiddle.net/rwaldron/da3nM/ Open the link and click to "Fork" in the top menu.