在 “\includes\templates\template_default\templates\tpl_login_default.php”文件中,修改其中的zen_set_field_length
路徑中的
template_default 要換成你自己的模板目錄名, zen_set_field_length 函數最後一個參數是輸入框長短,默認爲 40
或者有另外一種方法 :
直接使用前端CSS樣式控制不更省事兒
- 代碼: 全選
#loginDefault fieldset input,#createAccountForm fieldset input,#createAcctDefault fieldset input{width: 180px;}
#loginDefault .buttonRow input,#createAccountForm .buttonRow input,#createAcctDefault .buttonRow input{width: 30px;}
#email-format-text,#email-format-html,#newsletter-checkbox{width:15px;}
或者在短的哪幾項上賦予一個具體的樣式類或直接使用默認的樣式ID來控制長短