搜尋

首頁  >  問答  >  主體

我設定的背景怎麼顯示不出來




   
    ;標題</標題> <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-tw/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'>2297 天前</span><span class='pl-10'>1176 <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-tw/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-tw/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-tw/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-tw/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-tw/about/us.html">關於我們</a><a href="https://m.php.cn/zh-tw/about/disclaimer.html">免責聲明</a><a href="https://m.php.cn/zh-tw/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>