donglian6625 2019-02-07 00:59
浏览 58

如何使用css内容显示图像?

I have the following code, the code is showing some info on a page. At the line with content it is showing a text on my website but I want to put an image near that text, it seems so hard for me

 {  
    "id": 85,
    "parent": null,
    "created": "2019-02-06",
    "modified": "2019-02-06",
    "content": "Vielen Dank. Funktioniert immernoch perfekt!!!",
    "pings": [],
    "creator": 6,
    "fullname": "LinusKniepmann",
    "profile_picture_url": "./img/ppl/3.jpg",
    "created_by_admin": false,
    "created_by_current_user": false,
    "upvote_count": 3,
    "user_has_upvoted": false,
    "is_new": true
 },

So I want to put an image near the

"content": "Vielen Dank. Funktioniert immernoch perfekt!!!"

Are there any ways to input the image inside the content code?

  • 写回答

1条回答 默认 最新

  • douzhankui0758 2019-02-07 01:22
    关注

      background-image: url("images/2019-01-10_093A45.jpg");
    
      background-repeat: no-repeat;
    
      width: 180px; /* Width of your image */
      
      height: 236px;
    
      top: 100px; /* Customize to your position preference */
      
      left: 100px;

    </div>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么