Re: [問題] IE8 overflow:auto的bug

看板Web_Design作者 (小麥)時間16年前 (2010/01/28 13:03), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《megaman1206 (megaman)》之銘言: : 我有下面的測試網頁如下: : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> : <html xmlns="" rel="nofollow">http://www.w3.org/1999/xhtml"> : <body> : <div style="height:100px;overflow:auto;" onmouseout="s1.focus();s1.select();"> : <div>test</div> : <div>test</div> : <div>test</div> : ...很多div : <div>test</div> : <div>test</div> : <div>test</div> : </div> <div style="height:0px; overflow: auto;"> <textarea id="s1"></textarea> </div> : </body> : </html> : 在此狀況下, 我在ie8圈選外層div以外的空白區域, 會導致div內容被選曲且捲動, : 無論內容為何, 只要超出外層高度, 都會有同樣的狀況 : 請問有人知道這個問題該如何解決嗎? 感謝 可以試試看這結果, 其實就是焦點問題. 如果還要給使用者能選取文字的能力, 就還要加上判斷的js, 離開時選取一剛選取的量. (相當麻煩XD) -- + . . ▃▃▃▃ARIA ▃▃▃▃ . . . . . ◢◢カンパニー ││. ‥ .. ︵ ︵ ▂◢ — — + ▄▃▄▃▂◤ _ _""` _□_ ▂▄▅▆▇ █▆ω ▅▇▇ 鱻ψ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.70.29.66
文章代碼(AID): #1BOHgKzE (Web_Design)
文章代碼(AID): #1BOHgKzE (Web_Design)