我以前使用过带有自定义表单的Foundation 4,它们工作得很好。但是,对于Foundation 5,我无法理解如何使用它们。需要帮忙!
转到URL:http://foundation.zurb.com/stencils.html,它为使用它提供了奇怪的指导,我无法理解。
如您所见
http://foundation.zurb.com/docs/upgrading.html#upgrading-the-sass
@import "foundation/components/sections";
@import "foundation/components/custom-forms";
都已从基础框架中删除。如果您希望继续使用Foundation 4中定义的及其官方文档中所述的自定义表单
http://foundation.zurb.com/docs/v/4.3.2/components/custom-forms.html
然后,您可能应该切换回Foundation 4。
作为替代方案,您始终可以使用CSS3和伪元素来设置复选框和/或单选按钮的样式,而无需使用JavaScript插件来完成。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句