English 中文(简体)
体外定位:浓度 探索者
原标题:Body-background-position:center doesn t work i. explorer

I am making a web site and I have trouble with background-position property. Here is my css code:

body

页: 1

background-color: Black;

background-image: url(images/background_ui.png);

background-repeat: no-repeat;

background-position: top,center;

background-attachment: scroll;

iii

As you can see it is top, center. It s ok in chrome but in ie 8 the background doesnt go center horizontally. By the way, do you know any tags to write browser specified css code? Thanks.

问题回答

我并不认为 com是正确的,它应当是:<条码>后向位置:顶点。 一般说来,CSS化合物规则,如<条码>背井离层或<条码> 他们的价值观与漫画没有分离。 相反,它们与一个或多个空间分离。 举例来说,你们的社保会可以这样做:

background: black url(images/background_ui.png) no-repeat scroll top center;

Your syntax might not be right.

该职位应是顶级或中心。 它在神学院工作,而不是在教区工作,其原因是,由于缺省,它似乎处于中心地位。

I think this might help you:

{
background-position-x: 50%; 
background-position-y: 0%; 
}

EDIT:Ioannis Karadimas也是正确的。 废 com将给你预期的效果。 虽然我仍然利用Xy安插来避免交叉浏览器感到惊讶。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签