私は、ライン上の画像を持つボタンのリンクを取得したいと考えています。画像上の背景の背景
I did、実際には、使用してCSS:
その後section a:link, section a:visited {
width: 150px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-khtml-border-radius: 10px;
color: white;
background: #03c;
padding: 10px 10px 10px 60px;
display: block;
text-decoration: none;
}
section div {
margin-left: 5px;
margin-top: -9px;
width: 50px;
height: 50px;
float: left;
}
.pdf div {
background: transparent url('pdf.png') no-repeat 0 50%;
}
HTML:
<section class="pdf">
<div></div>
<a href="#">Sheet music (PDF)</a>
</section>
しかし、負のマージンthat don't work in IE7を使用してより良い解決策がないのですか?私は特定のmargin-top
をsection a
タグに入れようとしましたが、余白が崩壊したために動作しませんでした。
(うわー、私の評判は私が画像を埋め込むにも2つの以上の外部リンクを追加することはできませんでした。)
あなたのテストケースは、
thirtydot