当前第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 >
|
效果图:

推荐教程:《html视频教程》
以上就是如何给html设置背景的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
教你一招实现“代码雨”
Html是一种什么语言
什么是Html h1标签?Html h1标签使用方法的详细介绍
动态生成的Html标签如何实现绑定事件
Html的width是什么意思
Html的meta标签用法总结
Html5中table的意思是什么
Html del标签是块级元素吗?Html del标签具体应用方法
Html怎么去掉元素的边框
实例详解Html如何实现文件间自由切换
更多相关阅读请进入《Html》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » 如何给html设置背景