梦之都
CSS教程
,
background-attachment
示例,拖动滚动条,并且注意中间有一条橙色线并不会随滚动条的下移而上移.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>CSS background-attachment 属性示例</title> <style type="text/css" media="all"> body { background-image:url('/images/list-orange.png'); background-attachment:fixed; background-repeat:repeat-x; background-position:center center; position:absolute; height:5000px; } </style> </head> <body> <span>梦之都
CSS教程
,<strong><a href="http://www.dreamdu.com/css/property_background_attachment/">background-attachment</a></strong>示例,拖动滚动条,并且注意中间有一条橙色线并不会随滚动条的下移而上移.</span> </body> </html>