body{background-color:yellow}h1{background-color:#00ff00}h2{background-"> body{background-color:yellow}h1{background-color:#00ff00}h2{background-" />
欢迎来到天天文库
浏览记录
ID:40526708
大小:142.00 KB
页数:21页
时间:2019-08-04
《CSS背景文本字体》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、CSS背景实例:设置背景颜色:
2、/h2>
这是段落
这是文本。这是文本。这是文本。这是文本。这是文本。这是文本。这是文本。这是文本。这
3、是文本。
4、t}
5、url('/i/eg_bg_03.gif');background-repeat:no-repeat}
6、/style>
提示:您需要把background-attachment属性设置为"fixed",才能保证该属性在Firefox和Opera中正常工作。
7、attachment:fixed;background-position:30%20%;}
注释:为了在Mozilla中实现此效果,background-attachment属性必须设置为"fixed"。
8、:no-repeat;background-attachment:fixed;background-position:50px100px;}
此文档下载收益归作者所有