Adding style attributes to “asset_url | img_tag”
تبليغسؤال
يرجى شرح بإيجاز لمإذا تشعر أنك ينبغي الإبلاغ عن هذا السؤال.
Here’s my code:
{{ ap_html_img | asset_url | img_tag: settings[ap_html_title], “img-responsive”}}
I want to add these style attributes to the image: min-height: “300px” object-fit: “cover”.
What’s the proper syntax for this? I can’t seem to target the image HTML.
Any suggestions would be great!
أضف إجابة