如何给html设置背景


当前第2页 返回上一页

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<style>

body

{

background: pink url('smiley.gif') no-repeat fixed center;

}

</style>

</head>

 

<body>

<p>This is some text</p>

<p>This is some text</p>

<p>This is some text</p>

<p>This is some text</p>

<p>This is some text</p>

<p>This is some text</p>

<p>This is some text</p>

<p>This is some text</p>

<p>This is some text</p>

<p>This is some text</p>

<p>This is some text</p>

<p>This is some text</p>

<p>This is some text</p>

<p>This is some text</p>

<p>This is some text</p>

<p>This is some text</p>

</body>

 

</html>

效果图:

3.png

推荐教程:《html视频教程》

以上就是如何给html设置背景的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

教你一招实现“代码雨”

Html是一种什么语言

什么是Html h1标签?Html h1标签使用方法的详细介绍

动态生成的Html标签如何实现绑定事件

Html的width是什么意思

Html的meta标签用法总结

Html5中table的意思是什么

Html del标签是块级元素吗?Html del标签具体应用方法

Html怎么去掉元素的边框

实例详解Html如何实现文件间自由切换

更多相关阅读请进入《Html》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...