【问题标题】:How to use style for background image in cloudinary tags?如何在 cloudinary 标签中使用背景图像的样式?
【发布时间】:2018-06-01 15:29:39
【问题描述】:

我正在使用 angular2。 我想使用style="backgroound-image : url("the url from the cloudinary")"

page.html

<div>
<cl-image public-id = xyz.jpg>  


<cl-image>
<div>

【问题讨论】:

标签: html css angular


【解决方案1】:

您可以通过 URL 操作来实现这一点,例如在您的 css/scss 文件中使用:

background-image: url('path-to-cloudinary-image')

【讨论】:

    猜你喜欢
    • 2019-01-19
    • 2021-05-27
    • 1970-01-01
    • 2014-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-19
    • 2016-10-20
    相关资源
    最近更新 更多