gpt4 book ai didi

html - 为 .each 循环中的一个条目显示带有表显示值的模态

转载 作者:太空宇宙 更新时间:2023-11-04 06:21:40 25 4
gpt4 key购买 nike

我在此处关注并成功实现了类似查询的解决方案:Displaying a modal for one entry in a .each loop - Rails / Bootstrap .

但是,默认情况下 blockdisplay 属性应用于模态

enter image description here .

我认为这是通过 bootstrap 和 aria-hidden 实现的。有没有一种方法可以覆盖它并通过 Bootstrap 应用 table 的值,或者当 aria-hidden 显示模态时我是否必须使用一些 Javascript 解决方案设置为假?

最佳答案

我认为样式是由 JS 从 bootstrap 添加的。另一方面,这应该有效:

.your_element_class[aria-hidden="false"] {
display: table !important;
}

关于html - 为 .each 循环中的一个条目显示带有表显示值的模态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55451918/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com