开启辅助访问 设为首页     收藏本站     HTTPS安全访问
 找回密码
 立即注册

关于用户认证页面用户名输入看不到的修改

mobin201 回复:1 | 查看:12061 | 发表于 2016-3-13 19:40:15 |阅读模式 |复制链接
认证页面在用户 名密码输入框输入文字时看不到文字,因为字体是白色修改方法如下
1\打开网页目录C:\apache-tomcat-7.0.59\webapps\ROOT\dist\js\site.js
2\找到输入框的代码段(如下)
        //帐号密码认证
        $("#accountLogin").click(function() {
                $("h2").replaceWith('');
                $(".row").replaceWith('<div class="col-sm-4 col-md-offset-4"><h3>请输入帐号和密码</h3>\n' + '<form id="login_form" role="form">\n' + '<div  class="form-group"><input   type="text" class="form-control" id="InputAccount" name="usr" placeholder="帐号"></div>\n' + '<div class="form-group"><input   type="password" class="form-control" id="InputPassword" name="pwd"  placeholder="密码"></div>\n' + '<button id="btnAcpassword" type="button" class="btn btn-lg btn-info btn-block">登录</button><button id="goback" type="button" class="btn btn-lg btn-default btn-block">返回</button></form></div>\n');

3\在 <input  type="text" class="form-control" id="InputAccount" name="usr" placeholder="帐号"> 增加style="color:#000000"
既为
<input style="color:#000000" type="text" class="form-control" id="InputAccount" name="usr" placeholder="帐号">
<input style="color:#000000" type="password" class="form-control" id="InputPassword" name="pwd"  placeholder="密码">
输入框的内容就能显示了


回复

使用道具 举报

发表于 2016-3-13 20:31:10
字体颜色.png
回复 支持 反对

使用道具 举报

登录 发布 快速回复 返回顶部 返回列表