解決IE6下浮層遮蓋select刺穿的問題

2021-09-08 09:55:11 字數 2541 閱讀 4225

圖一未解決刺穿問題:              圖二已解決

解決方法使用iframe間接擋住層,具體方法見原始碼

原始碼一(未解決刺穿):

>無標題文件

title

>

<

style

type

="text/css"

>

#warp

.box

.box iframe

style

>

head

>

<

body

>

<

div

id="warp"

>

<

iframe

frameborder

="0"

>

iframe

>

<

div

class

="box"

>dfsagdsa

div>

div>

<

form

id="form1"

name

="form1"

method

="post"

action

="">

<

label

>

<

select

name

="select"

id="select"

>

<

option

>測試選項

option

>

<

option

>測試選項2

option

>

<

option

>測試選項3

option

>

select

>

label

>

form

>

body

>

html

>

原始碼2(已解決刺穿問題)

>無標題文件

title

>

<

style

type

="text/css"

>

#warp

.box

style

>

head

>

<

body

>

<

div

id="warp"

>

<

div

class

="box"

>dfsagdsa

div>

div>

<

form

id="form1"

name

="form1"

method

="post"

action

="">

<

label

>

<

select

name

="select"

id="select"

>

<

option

>測試選項

option

>

<

option

>測試選項2

option

>

<

option

>測試選項3

option

>

select

>

label

>

form

>

body

>

html

>

解決IE6下Position fixed問題

解決此問題的要點主要有 1 容器要有乙個背景 2 設定它的滾動屬性為fixed。3 用ie特有的e xpression方法計算出元素的top,left,right,bottom的量。程式設計客棧 script language j ascript ffcod delpost.runcode1 val...

expression解決IE6下固定定位的相容

本文所使用的技巧是用了一條 internet explorer 的 css 表示式 expression 你不可以直接使用該表示式,因為它可能會因為快取而不更新。解決這一點的最簡單的方式是使用 eval 包裹你的語句。如何解決 振動 的問題?顯然 ie 有乙個多步的渲染程序。當你滾動或調整你的瀏覽器...

解決ie6下背景閃動問題

ie的cache設定為every visit to the page,而不是預設的automatically。ie6下設定背景是不會被真正cache住的.但一般只有開發者才會把cache設定為每次訪問檢查更新,所以這個bug不會影響到真正的使用者。上面是網頁版qq 的 var isie ua.ind...