我想在我的博客页面中添加内联css代码。此css代码调用图像作为div的背景。
这可能吗?如何做到这一点?
我尝试将该图像添加为媒体资源,并获得了它的URL,但使用此URL似乎不起作用。
粘贴到页面html的代码示例:
<p><a href="http://mysite.com/wp-signup.php" style="width: 90%;
font-family: Helvetica, Arial, sans-serif;
background: #0e710d url(http://mysite.com/wp-content/uploads/2012/03/image.png) 0 0 repeat-x;
font-size: 1.6em;
">
Click here »</a></p>