利用CSS准确控制页面和元素背景(2)

2008-02-23 08:39:12来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折


}
</style>
</head>
<body>
Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here.
<p />
Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here.
<p />
Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here. Content goes here.
</body>
</html>

现在,当你试图滚动这个页面的时候,右上角的图像会相对于浏览器窗口保持固定,它不会随页面上的其它内容滚动下来。

Figure F


Listing F 示例

当然,这些例子只是CSS背景应用中很小的一部分。然而,它们应该给了你一个在实际应用中使用这些属性的方法,你现在也应该能将这些属性应用到你的程序中了。所以,现在你还等什么呢?开始编写这些令人愉悦的代码吧!

关键词:
【推荐给好友】【关闭】
最新五条评论
查看全部评论
评论总数 0 条
您的评论
用户名: 新注册) 密 码: 匿名:
·用户发表意见仅代表其个人意见,并且承担一切因发表内容引起的纠纷和责任
·本站管理人员有权在不通知用户的情况下删除不符合规定的评论信息或留做证据
·请客观的评价您所看到的资讯,提倡就事论事,杜绝漫骂和人身攻击等不文明行为

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:网页中的小三角用DIV CSS的做法与使用

下一篇:CSS如何为同一个元素处理多种规则