2013-04-14 84 views
1

標誌貝雷:San-Francisco-Family-Photographer.com圍繞圖像中的CSS iphone

在iphone,圖像不會中心。

.header-image #header #title-area { 
    background: url("http://www.san-francisco-family-photographer.com/wp-content/uploads/2013/04/Joey-Chandler-Photographer-square.png") no-repeat scroll center center transparent; 
    background-position: center; 
    height: 130px!important; 
    width: 180px!important; 
} 

.header-image #title-area, .header-image #title, .header-image #title a { 
    display: block; 
    margin-left: auto; 
    margin-right: auto; 
} 

謝謝。

回答

0

您可以將它放在一個div中並將它居中。

div#image { 
    background: #282; 
    width:130px; 
    height:130px; 
    position:absolute; 
    top:0; 
    bottom:0; 
    left:0; 
    right:0; 
    margin:auto; 
}