有没有办法使文件上传输入与 Zend Framework 中的 dijit 主题匹配?
我一直在查看 Zend_Dojo_Form_Element 包,似乎找不到文件上传输入,因此我只能使用纯文件上传,而在其余主题精美的元素(例如 SubmitButton 和 ComboBox)旁边没有主题样式。
还有其他人遇到过这个问题吗?是否有一个优雅的解决方案来应用 dijit 主题?
I've been looking at the Zend_Dojo_Form_Element package and can't seem to find a file upload input, so I'm stuck with a plain file upload with no theme style next to the rest of my nicely themed elements such as SubmitButton and ComboBox.
Has anyone else encountered this problem? Is there an elegant solution to apply the dijit theme?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道你是否已经看过这个:http://www.quirksmode.org /dom/inputfile.html
您可以尝试创建自己的小部件来为您进行设置。不过,您需要使用 dximage 过滤器来支持 IE,YMMV。由于元素堆叠和需要相对定位的父级,也可能无法工作,具体取决于您如何进行布局。
I don't know if you've already looked at this : http://www.quirksmode.org/dom/inputfile.html
What you could try is creating your own widget that sets this up for you. You'll need to use a dximage filter for IE support though, YMMV. Also may not work depending on how you're doing your layout due to element stacking and the need for a relatively positioned parent.