简体   繁体   English

如何在 XSLT 文档中放置此行 > data-masonry='{"percentPosition": true }' 而不会破坏它

[英]How to place this line > data-masonry='{"percentPosition": true }' in XSLT document withoout breaking it

I would like to use the Bootstrap Masonry described here https://getbootstrap.com/docs/5.0/examples/masonry/ in SobiPro with Joomla 4 Cassopedia Tempalte.我想在 SobiPro 中使用https://getbootstrap.com/docs/5.0/examples/masonry/中描述的 Bootstrap Masonry 和 Joomla 4 Cassopedia Tempalte。

I need a div like this - <div class="row" data-masonry='{"percentPosition": true }'>我需要这样的 div - <div class="row" data-masonry='{"percentPosition": true }'>

However, the above used in an XSLT document creates an error.但是,在 XSLT 文档中使用的上述内容会产生错误。

How can I include data-masonry='{"percentPosition": true }' in XSLT to make Masonry work?如何在 XSLT 中包含data-masonry='{"percentPosition": true }'以使 Masonry 工作?

thanks谢谢

OK this seems to work data-masonry="{percentPosition=true}"好的,这似乎工作data-masonry="{percentPosition=true}"

Can anyone see a problem with the above?任何人都可以看到上面的问题吗?

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

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