搜索

首页  >  问答  >  正文

我设置的背景怎么显示不出来




   
    ;标题</标题><br/></head><br/><正文><br/><div style="background-image: url('C:\Program Files\JetBrains\PhpStorm 2017.3\mn .jpg')">你好</div><br/></body><br/></html></p></div><div class='info mb-10'><a rel="nofollow" href=" https://m.php.cn/zh/member/102404.html"><img src='https://img.php.cn/upload/avatar/000/000/001/bc3c43e41235ed466f09ab74a3b61866.jpg' alt="残刀殉菊"><span style="margin-left: 5px;">残刀殉菊</span></a><span class='pl-10'>2300 天前</span><span class='pl-10'>1183 <b class="kclbcollectb"></b></span></div></div><div class="course-list discuss layui-clear bg-white"><h3>全部回复(2)<span class="detail_answer"><span id="discuss-wenda">我来回复</span></span></h3><li class="layui-clear"><div class="discuss-img"><img src="/static/images/user_avatar.jpg" alt="漫步"></div><div class="info f-left ml-10"><p><a rel="nofollow" href="https://m.php.cn/zh/member/278811.html" fid="" class="replyer-name">漫步</a><span>2018-08-21 09:25:51</span></p><p class="content Overflow_line"><p>我也是初学者,对于这个问题我有2个理解</p><p>第一个:图片路径,需要确定图片路径确实是正确的,而一般情况下我们用到的是相对路径而非绝对路径</p><p>第二个:你的div并没有定义width和height,所以不显示背景我个人感觉很正常的</p></p><span class="detail_answer2" style="float: left" fid="239561"><div class="btn wenda-second-btn" name="漫步" fid="239561">回复</div></span><i class="layui-icon layui-icon-praise wenda-praise-btn"><span>0</span></i></div></li><div class="reply-list"><div class="reply-item"><span class="pull-left comment-ops absolute"><span class="mr20"><a rel="nofollow" href="https://m.php.cn/zh/member/102404.html" target="_blank"><img src="https://img.php.cn/upload/avatar/000/000/001/bc3c43e41235ed466f09ab74a3b61866.jpg" width="30" height="30" alt="残刀殉菊"></a></span></span><div class="reply-content-block"><div class="reply-content Overflow_line"><p>谢谢你,我找到原因了,是浏览器的问题</p></div><div><span class="comment-meta inline-block"><span> — </span><a rel="nofollow" target="_blank" class="reply_color" href="https://m.php.cn/zh/member/102404.html"><strong>残刀殉菊</strong></a><span class="text-muted-plus"> · 2018-08-21 10:08:09</span></span></div></div></div></div><li class="layui-clear"><div class="discuss-img"><img src="/static/images/user_avatar.jpg" alt="秋香姐家的小书童"></div><div class="info f-left ml-10"><p><a rel="nofollow" href="https://m.php.cn/zh/member/231148.html" fid="" class="replyer-name">秋香姐家的小书童</a><span>2018-08-15 09:36:10</span></p><p class="content Overflow_line"><p>图片背景  你放C盘了?</p><p>背景不出来唯一的原因就是路径不对  检查 下路径吧</p></p><span class="detail_answer2" style="float: left" fid="239476"><div class="btn wenda-second-btn" name="秋香姐家的小书童" fid="239476">回复</div></span><i class="layui-icon layui-icon-praise wenda-praise-btn"><span>0</span></i></div></li><div class='more'></div></div><div class='discuss-submit bg-white'><li class='info layui-clear'><span class='f-left' id='discuss-submit-close'>取消</span><span class='f-left wenda-reply-text'>回复</span></li><li class='layui-clear'><textarea type='text' rows="6" placeholder="请输入您的评论内容" class="wenda-reply-content-text"></textarea></li><li class='layui-clear'><button class="layui-btn layui-btn-danger f-right wenda-reply-publish-button">发布</button></li></div><div class='lock-screen' id='lock-screen'></div><script src="/static/ueditor/third-party/SyntaxHighlighter/shCore.js"></script><div class="headerMask"></div><link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css' type='text/css' media='all'/><script type='text/javascript' src='/static/js/viewer.min.js?1'></script><script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script><footer><div class="footer"><div class="footertop"><img src="/static/imghwm/logo.png" alt=""><p>公益在线PHP培训,帮助PHP学习者快速成长!</p></div><div class="footermid"><a href="https://m.php.cn/zh/about/us.html">关于我们</a><a href="https://m.php.cn/zh/about/disclaimer.html">免责声明</a><a href="https://m.php.cn/zh/update/article_0_1.html">Sitemap</a></div><div class="footerbottom"><p> © php.cn All rights reserved </p></div></div></footer><script>isLogin = 0;</script><script type="text/javascript" src="/static/layui/layui.js"></script><script type="text/javascript" src="/static/js/global.js?4.9.47"></script></body></html>