백그라운드에 로그인된 CSS 및 이미지를 로드할 수 없습니다. 확인 결과 응답이 없는 것으로 나타났습니다. 이 문제를 해결하려면 어떻게 해야 합니까?
椿.
椿. 2019-10-15 21:08:55
0
9
1613

YY2XH6%0W58$_JA}@49}7UL.png위 사진을 참고해주세요

椿.
椿.

모든 응답(4)
思源

배경 이미지가 표시되지 않는 이유는 H-ui.login.css

@charset "utf-8";/* -----------H-ui前端框架-------------* H-ui.login.css v2.2.1	后台登录页样式* http://www.h-ui.net/* Created & Modified by guojunhui* Date modified 2015.6.5** Copyright 2013-2015 北京颖杰联创科技*** All rights reserved.* Licensed under MIT license.* http://opensource.org/licenses/MIT**/html, body{ height:100%}body{font-size:14px}
.header,.footer{ position:absolute; left:0; right:0; width:100%; z-index:99}.header{top:0; height:60px; background:#426374 url(../images/logo.png) no-repeat 0 center}
.loginWraper{ position:absolute;width:100%; left:0; top:0; bottom:0; right:0; z-index:1; background:#3283AC url(../images/admin-login-bg.jpg) no-repeat center}.loginBox{ position:absolute; width:617px; height:330px; background:url(../images/admin-loginform-bg.png) no-repeat; left:50%; top:50%; margin-left:-309px; margin-top:-184px; padding-top:38px}@media (max-width:617px) {	.loginbox{ width:100%; position:static; margin-top:0; margin-left:0;}}.loginBox .row{margin-top:20px;}.loginBox .row .form-label .Hui-iconfont{ font-size:24px}.loginBox .input-text{ width:360px}@media (max-width:617px) {	.loginBox .input-text{ width:80%}}	.yzm a{ color:#426374; font-size:12px}
#span_msg{ font-size:14px; color:Red; line-height:40px; height:40px; margin-left:10px; width:160px;; float:left}
.hd_msg{font-size:12px; color:#fff; height:30px; z-index:100;position: absolute; padding-left:50px; padding-top:5px}.hd_msg a{ color:#fff}.hd_msg a:hover{ color:#fff; text-decoration:underline}
.footer{ height:46px; line-height:46px; bottom:0; text-align:center; color:#fff; font-size:12px; background-color:#426374}
#ie6-warning{background:#fff url(/jscss/demoimg/201006/warning.gif) no-repeat 3px center;position:absolute;top:0;left:0;font-size:12px;color:#333;width:97%;padding: 2px 15px 2px 23px;text-align:left}#ie6-warning a {text-decoration:none}

1.jpg2.jpg

이 없기 때문입니다.
小兔几

선생님께서 몇 가지 단계를 설명하지 않으셨고, 코드의 일부를 변경해야 합니다. H는 대문자인데 파일은 소문자이고, 이미지 파일은 H-ui에서 복사해야 합니다

卢小强

이 코드를 실행했는데 작동합니다. 공개/정적에서 참조한 파일이 있는지 확인하세요.



  • 회신하다 알았어 고마워
    椿. 작가 2019-10-16 12:36:39
卢小强

참조 경로가 잘못되었을 것입니다! 코드가 전송되었습니다

  • 회신하다 <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <meta name="renderer" content="webkit|ie-comp|ie-stand"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> <meta http-equiv="Cache-Control" content="no-siteapp" /> <!--[if lt IE 9]> <script type="text/javascript" src="__STATIC__/lib/html5.js"></script> <script type="text/javascript" src="__STATIC__/lib/respond.min.js"></script> <![endif]--> <link href="__STATIC__/static/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" /> <link href="__STATIC__/static/h-ui/css/H-ui.login.css" rel="stylesheet" type="text/css" /> <link href="__STATIC__/static/h-ui.admin/css/style.css" rel="stylesheet" type="text/css" /> <link href="__STATIC__/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" /> <!--[if IE 6]> <script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script> <script>DD_belatedPNG.fix('*');</script><![endif]--> <title>백엔드 로그인 - H-ui.admin.page v3.0</title> <meta name="keywords" content="H-ui.admin v3.0,H-ui网站后台模版,后台模版下载,后台管理系统模版,HTML后台模版下载"> <meta name="description" content="H-ui.admin v3.0,是一款由国人开发的轻量级扁平化网站后台模板,完全免费开源的网站后台管理系统模版,适合中小型CMS后台系统。"> </head> <body> <input type="hidden" id="TenantId" name="TenantId" value="" /> <div class="header"></div> <div class="loginWraper"> <div id="loginform" class="loginBox"> <form class="form form-horizontal" action="index.html" method="post"> <div class="row cl"> <label class="form-label col-xs-3"><i class="Hui-iconfont"></i></label> <div class="formControls col-xs-8"> <input id="" name="name" type="text" placeholder="账户" class="input-text size-L"> </div> </div> <div class="row cl"> <label class="form-label col-xs-3"><i class="Hui-iconfont"></i></label> <div class="formControls col-xs-8"> <input id="" name="password" type="password" placeholder="密码" class="input-text size-L"> </div> </div> <div class="row cl"> <div class="formControls col-xs-8 col-xs-offset-3"> <input name="verity" class="input-text size-L" type="text" placeholder="验证码" onblur="if(this.value==''){this.value='验证码:'}" onclick="if(this.value=='验证码:'){this.value='';}" value="验证码:" style="width:150px;"> <img id="verity_img" src="{:captcha_src()}"> <a id="kanbuq" href="javascript:refreshVerfity();">잘 안보이면 다른걸로 바꿔주세요</a> </div> </div> <div class="row cl"> <div class="formControls col-xs-8 col-xs-offset-3"> <label for="online"> <input type="checkbox" name="online" id="online" value=""> 로그인 상태를 유지하세요 </label> </div> </div> <div class="row cl"> <div class="formControls col-xs-8 col-xs-offset-3"> <input name="" type="button" id="login" class="btn btn-success radius size-L" value="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;"> </div> </div> </form> </div> </div><div class="footer">H-ui.admin.page.v3.0을 통해 회사 이름을 저작권으로 보호하세요</div> <script type="text/javascript" src="__STATIC__/lib/jquery/1.9.1/jquery.min.js"></script> <script type="text/javascript" src="__STATIC__/static/h-ui/js/H-ui.js"></script> <!--刷新验证码 --> <script> function refreshVerfity(){ var ts=Date.parse(new Date())/1000; $("#verity_img").attr("src","/captcha?id="+ts); //刷新验证码 } </script> <!--Ajax提交 --> <script> //给登录按钮添加点击事件 $(function(){ $("#login").on('click',function(event){ $.ajax({ type:"POST", //提交类型 url:"{:url('checkLogin')}", //处理程序的url data:$("form").serialize(),//将当前表单的数据 序列化之后在提交 dataType:'json', // 提交的数据类型 success:function(data){ //只有返回标识符为1,才进行处理 } }) }) }) </script> </body> </html>
    椿. 작가 2019-10-16 08:38:11
  • 회신하다 [그림]
    椿. 작가 2019-10-16 08:39:31
  • 회신하다 [그림]
    椿. 작가 2019-10-16 08:39:59
  • 회신하다 사진이 안보이네요. PETER 소스코드를 다운받아서 직접 실행한 후 비교해서 문제를 찾아보세요.
    卢小强 작가 2019-10-16 12:09:52
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!