
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;
}以上就是css滑動門技術的介紹,希望對大家有幫助。