开发者

Why is my table background image not showing in wordpress?

Why is my table row background image not appearing in Wordpress.

Is the stylesheet for the theme suppressing it in some way and if so, how can one override that to make the image show, or is there some other fault causing it not to appear?

Note the other image in the table does display properly so the path to the files seems to work ok.

<table width="250" height="200" cellpadding="0" cellspacing="0" border="1">
<tr>
    <td WIDTH="250" HEIGHT="82" colspan="3"><img src="/wp-content/plugins/xxxxxxwidget/image1.png">
        </td>
</tr>
<tr>
    <td style="background-image:url(/wp-content/plugins/xxxxxxwidget/image2.png) no-repeat center;" WIDTH="250" HEIGHT="45" colspan="3">
        </td>
    </tr>
</table>

Any s开发者_StackOverflow中文版uggestions?


add position:absolute; to your table style.


Change

background-image:url(/wp-content/plugins/xxxxxxwidget/image2.png) no-repeat center;

to

background:url(/wp-content/plugins/xxxxxxwidget/image2.png) no-repeat center;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜