Zend Form captcha Decorator

守給你的承諾、 提交于 2019-12-11 04:49:59

问题


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?

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

Please help.


回答1:


<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



来源:https://stackoverflow.com/questions/9734427/zend-form-captcha-decorator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!