CSS給背景圖定位

background-position:| [percentage | length]{1,2}|[top | center | bottom]| [left | center | right] www.86oo.combackground-position:[percentage | length]是用X(橫座標)y(縱座標)定義,如background-position: 20px 40px; http://www.86oo.combackground-position:[top |

CSS中background:url(imagepth) 不能顯示背景圖片

剛剛碰到一個詭異的問題,這樣一段CSS代碼:background:url(images/bg/bg1.gif) no-repeat;這段代碼居然不能顯示出背景圖片,倒塌。。。代碼肯定沒有問題,即便我沒有對背景圖片定位,這裡暫不考慮,因為我這裡不存在這個問題。。。於是乎,搜尋了一下Google,發現有這個問題的人還真不少。。。但是真正指出問題所在的資訊並不多。。。真正的問題在哪?在url(imagepath)裡的這個imagepath,原來它是相對於.css檔案這個目錄,而不是調用css檔案所在檔

總頁數: 694 1 .... 690 691 692 693 694 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.