php background-image,css background-image属性怎么用
生活随笔
收集整理的這篇文章主要介紹了
php background-image,css background-image属性怎么用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
css background-image屬性為元素設置背景圖像,語法為:background-image:url(圖片路徑)。設置的背景圖像會占據元素的全部尺寸,包括內邊距和邊框,但不包括外邊距。
css background-image屬性怎么用?
作用:為元素設置背景圖像。
說明:元素的背景占據了元素的全部尺寸,包括內邊距和邊框,但不包括外邊距。默認地,背景圖像位于元素的左上角,并在水平和垂直方向上重復。
注釋:任何版本的 Internet Explorer (包括 IE8)都不支持屬性值 "inherit"。
css background-image屬性使用示例
body {background-image:url('https://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg');}
效果輸出:
總結
以上是生活随笔為你收集整理的php background-image,css background-image属性怎么用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: c 语言 16进制写法,C语言16进制中
- 下一篇: linux下安装libsvm_在ubun