Zend 表单验证码装饰器 [英] Zend Form captcha Decorator

查看:23
本文介绍了Zend 表单验证码装饰器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Zend Captcha 一起生成验证码图像、隐藏输入元素、验证码输入文本框 3 个元素,并将它们并排放置,没有任何分隔符.我只想在由 zend 表单验证码生成的验证码元素中装饰验证码图像标签.并保持输入元素不变.我不想为它创建自定义装饰器类.

Zend Captcha generates 3 elements together are captcha image, hidden input element, input text box for captcha code respectively and places them side by side without any separator. I want to decorate captcha image tag only in captcha element being generated by zend form captcha. And leave input elements intact. I don't want to create custom decorator class for it.

有没有办法做到这一点?

Is there any way to do this?

我在看到 $_separator 变量的地方深入研究了 zend 装饰器.有帮助吗?

I delve into zend decorator where I see $_separator variable. Can it be helpful?

请帮忙.

推荐答案

<style>
.zend_form > img {
    border: 10px solid red;
}
</style>

如果你只想要视觉装饰:)

if you want only visual decoration :)

你想用验证码元素做什么?插入前|后文本?描述

what do u want to do with captcha element? insert pre|post text? describe

这篇关于Zend 表单验证码装饰器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆