如何将图像设置为网页背景

2024-10-11 22:01:18

1、bac氯短赤亻kgoround-image代码。我们用这个代码向一个网页中的body进行赋值就行了。<html><head><style type="text/css">body {background-image:url(/i/4.gif);}</style></head><body></body></html>

如何将图像设置为网页背景

3、background-repeat 代码的使用会让背景中的图像重复出现。<style type="text/css">body{background-image:url(/i/eg_bg_03.gif);background-repeat: repeat}</style>

如何将图像设置为网页背景

5、还有一种情况就是图像在网页当中只使用一次。background-repeat: no-repeat

如何将图像设置为网页背景
猜你喜欢