CSS属性

 text-indent:文本缩进
text-overflow:ellipsis   当对象内文本溢出时显示省略号
background-attachment:scroll   背景图片随对象内容滚动  
                     :fixed    背景图片固定(默认)
                         body {
                         background-image: url(skin/p_103x196_1.jpg);
                         background-repeat: no-repeat;
                         background-position: 50% 200px;
                         background-attachment: fixed;
                          } 
                          
                          <p>背景图像不随窗体内容滚动始终固定</p>
background-position:背景定位
  .test {
      border: 1px solid #000;
      width: 400px;
      height: 500px;
      background-image: url(skin/p_103x196_1.jpg);
      background-repeat: no-repeat;
      background-position: center;
        }
        
        <div class="test">背景图水平垂直居中</div>
background-repeat:repeat:背景在X和Y轴都重复;
                   no-repeat:(默认)不重复;
                   repeat-x:在X轴重复;
                   
                      .test {
                         padding-top: 200px;
                         background-image: url(skin/p_103x196_1.jpg);
                         background-repeat: repeat-x;
                           }

你可能感兴趣的:(CSS属性)