0
私が取得しようとしている効果のイメージである:ここでh3のクラスに(ワードプレス)の背景画像を使用して
は、私が持っている実際の画像は、次のとおりです。
ここで
は、私はこれを試してみましたhttp://ratest10.com/?page_id=2
サイトです。
.widget-container {
margin: 0 0 18px 0;
background: #FFFFFF;
width:204px;
padding: 0 8px;
overflow:visible;
}
.widget-title {
color: #222;
font-weight: bold;
background: url(images/sidbar-title-bak.png);
width:240px; height: 45px;
}
、その後、オーバーフローなどのバリエーションの周りいじくる試みた:目に見える、とH3を保持するクラスでdiv要素にHTMLの構造を変更し、どこでも取得できませんでした。
これはWordPressのサイトですとhtmlがある...
<li id="categories-2" class="widget-container widget_categories"><h3 class="widget- title">Categories</h3> <ul>
治療法に近いと思います。 '.widget-container { \tマージン:0 0 18px 0; \t背景:#FFFFFF; \t幅:220px; } .widget-title { \t color:#fff; \t font-weight:bold; \t背景:url(images/sidbar-title-bak.png)no-repeat; \t幅:240px;高さ:45px; margin-left:-26px; text-align:center; 線高さ:30px; } ' – KBarnes