1

徽标:San-Francisco-Family-Photographer.com

在 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;
}

谢谢。

4

1 回答 1

0

你可以把它放在一个 div 中并居中。

div#image {
    background: #282;
    width:130px;
    height:130px;
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    margin:auto;
}
于 2013-04-14T18:45:55.643 回答