css在IE中固定位置

dev*_*ter 0 css css-position

我试图自己解决这个问题,但未成功.我试图将闪光元素放在底部的固定位置.

#ticker{ position: fixed; bottom: 0; right: 12%; z-index: 6000 !important;}
Run Code Online (Sandbox Code Playgroud)

它适用于FF和Chrome但不适用于IE.我试着改变doctype

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Run Code Online (Sandbox Code Playgroud)

但它不起作用.我读了一些关于放置假元素的东西,但我没有得到它.

Ash*_*ngh 5

让你的小提琴工作,你不需要改变你的DOCTYPE.

这是http://jsfiddle.net/xpjyY/1/

您忘记了css中"对象"的结束括号.

object[width=150]{z-index: -5 !important;}//Forgot the closing bracket
Run Code Online (Sandbox Code Playgroud)