我正在使用html5 样板和他们的 .ir 类。我使徽标可点击,我想将它放在页面中心,但到目前为止还没有运气。我试过 margin: 0 auto; 和文本对齐:居中;但它们似乎都不起作用。
html
<a href="/"><h1 class="ir">logo header</h1></a>
和CSS
h1 {
height: 373px;
}
.ir {
display: block;
border: 0;
text-indent: -999em;
overflow: hidden;
background-color: transparent;
background-repeat: no-repeat;
text-align: left;
direction: ltr;
*line-height: 0;
background-image: url(http://i.imgur.com/yYnyJ.jpg);
}
.ir br { display: none; }