.textsidered
{
    background-image: url(../Img/textb.gif);
    background-position: -2px -100px;
    background-repeat: no-repeat;
    padding: 10px 5px;
    width: 210px;
}

网上有很多程序的图标是一个图片  然后切割成了多个部分  用到得就是 background-position

许金杰 在前台用的是2个div 叠加 左边部分 叠加右边部分

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2021-08-20
  • 2021-09-17
  • 2021-08-03
猜你喜欢
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案