首页 > 文章列表 > css滑动门技术是什么

css滑动门技术是什么

css 滑动门技术
274 2022-08-06

1、使各种特殊形状的背景能够适应元素中的文本内容,并自由拉伸和滑动。

2、宽度足够长的背景图,同时设置在链接和链接文本的背景上,一左一右拉伸。

实例

a {
  display: inline-block;
  height: 33px;
  background: url(images/ao.png) no-repeat;
  color: #FFF;
  text-decoration: none;
  line-height: 33px;
}
 
a span {
  display: inline-block;
  height: 33px;
  background: url(images/ao.png) no-repeat right;
}