html - 如何在内联 CSS 中添加背景图片

标签 html css wordpress

<分区>


想改进这个问题吗? 更新问题,使其只关注一个问题 editing this post .

关闭 7 年前

我想在 WordPress(内联 css)中添加背景图片,但我不知道该怎么做,因为 WordPress 仅支持内联 CSS。

有人可以帮我怎么做吗?

最佳答案

<div style="background: transparent url(put your image url here) center top no-repeat; margin: 20px auto; padding: 45px 10px 20px; width: 90%; ">
YOUR POST TEXT HERE
</div>

关于html - 如何在内联 CSS 中添加背景图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34388940/

上一篇:javascript - HTML5 canvas 绘制一个带有明胶效果的矩形

下一篇:css - 具有 div 显示属性的媒体查询

相关文章:

javascript - 网站无法使用 Javascript 关闭

html - 自动增加滚动条高度

javascript - Heroku site 是对的,local 是错的。如何在本地克隆我的 heroku 代码?

javascript - 我需要粘性 header 来停止粘性超出某一点

javascript - 包裹第 n 个或更少的元素,结果错误

当用户更新其电子邮件地址时,Wordpress Hook /事件/操作

javascript - 将 span 标签插入 div 时出现问题

javascript - HTML5 : Whenever I send a text area message to fill out the body of an email the name of the text area proceeds it. 如何修复此问题?

android - 当 URL 来自 Internet 服务器时,如何将自定义 css 应用于 android Webview?

javascript - jwPlayer 在 IE8 中不工作