phpcms——评论页面修改

使用验证码后,提交按钮发生错位。这个时候其实删除验证码代码段的<div class="bk10"></div>部分即可

这个是是清除浮动的。去除之后回和提交将在一行上显示

1,具体位置是phpcms\templates\default\comment\ 目录下的show_list.html 模板页中这段

{if $setting[code]}

 <label>验证码:<input type="text" name="code"  class="input-text" id="yzmText" onfocus="var offset = $(this).offset();$('#yzm').css({'left': +offset.left-8, 'top': +offset.top-$('#yzm').height()});$('#yzm').show();$('#yzmText').data('hide', 1)" onblur='$("#yzmText").data("hide", 0);setTimeout("hide_code()", 3000)' /></label>

 <div id="yzm" class="yzm">{form::checkcode()}<br />点击图片更换</a></div>

        <div class="bk10"></div>

{/if}

2,具体位置是phpcms\templates\default\comment\ 目录下的list.html 模板页中这段

{if $setting[code]}

  <label>验证码:<input type="text" name="code"  class="input-text" id="yzmText" onfocus="var offset = $(this).offset();$('#yzm').css({'left': +offset.left-8, 'top': +offset.top-$('#yzm').height()});$('#yzm').show();$('#yzmText').data('hide', 1)" onblur='$("#yzmText").data("hide", 0);setTimeout("hide_code()", 3000)' /></label>

  <div id="yzm" class="yzm">{form::checkcode()}<br />点击图片更换</a></div>

        <div class="bk10"></div>

{/if}

原文地址:https://www.cnblogs.com/fslnet/p/2150295.html