css位置属性在chrome 29中不起作用
我面临着新版chrome 29的问题。 我将div的css设置为css位置属性在chrome 29中不起作用,css,google-chrome,Css,Google Chrome,我面临着新版chrome 29的问题。 我将div的css设置为 .dijitBorderContainerPane, .dijitBorderContainerNoGutterPane { position: absolute !important; z-index: 2; } 它在firefox IE和chrome 25到28上正常工作。 但在chrome 29上显示不正确 请帮助我。使用浏览器html/css检查器检查样式添加是否正确。并检查是否没有
.dijitBorderContainerPane, .dijitBorderContainerNoGutterPane {
position: absolute !important;
z-index: 2;
}
它在firefox IE和chrome 25到28上正常工作。
但在chrome 29上显示不正确
请帮助我。使用浏览器
html/css检查器检查样式添加是否正确。并检查是否没有其他内容覆盖您的设置。首先使用inspect element查看您的元素使用了哪些样式
另一个提示是,当您使用位置属性的绝对值时,您应该设置位置(左、上、右、下)参数,如果没有这些参数,您将无法获得结果。详情如下:
.dijitBorderContainerPane, .dijitBorderContainerNoGutterPane {
top: 12;
left: 20;
position: absolute !important;
z-index: 2;
}
这只是一个例子@Ahsan不完整的问题不知道你想要实现什么,我建议创建演示,并告诉你想要定位该元素的位置。希望我能够帮助您看起来工作正常-偶尔需要使用绝对定位,而不希望指定X或Y值。