background:url(images/background-liquid.gif) repeat-y 25% top; 其中25%是什么意思?top 的作用?

来源:百度知道 编辑:UC知道 时间:2024/06/05 03:36:49
下面是其中的源代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>分栏背景色</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<style type="text/css">
body{
font:12px/18px Arial;
margin:0;
}
#header,#footer {
background:#CCCCFF;
width:85%;
margin:0 auto;
}
h2{
margin:0;
padding:20px;
}
p{
padding:20px;
text-indent:2em;
margin:0;
}
#container {
width:85%;
margin:0 auto;
background:url

背景图片从图片宽度的25%开始,垂直置顶。
背景属性:背景颜色 背景图片 背景是否重复 背景平位置 背景垂直位置
background : background-color || background-image || background-repeat || background-position
更多请看这里:http://baike.baidu.com/view/1885292.html?wtp=tt