CSS 属性:

background-origin:

  • padding-box
  • border-box
  • content-box

结果:

CSS 代码:

#MyDIV
{
padding:25px;
border:10px dotted #000000;
background-image:url('/i/eg_smile.gif');
background-origin:padding-box;
background-repeat:no-repeat;
}