简体   繁体   English

将属性添加到Shopify的{%form%}液体标签

[英]Adding attributes to Shopify's {% form %} liquid tag

Is it possible to add attributes to Shopify's {% form %} liquid tag? 是否可以向Shopify的{% form %}液体标签添加属性? I want to give all my forms id's so that I don't have to rely on parent elements to target their styles. 我想给我所有的表单id,以便我不必依赖父元素来定位他们的样式。

Yes you can add attributes. 是的,您可以添加属性。

Example: 例:

{% form 'contact', id: "test" %}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM