按钮滑动门

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了按钮滑动门相关的知识,希望对你有一定的参考价值。

Finally got round going through a sliding door example myself. All fairly straightforward apart from a few IE6 issues (who would have guessed!).

The button is floated so you may need to add overflow: hidden to it's container.
  1. /* html: <a href="####" class="clickOrder"><span>Click here to order</span></a> */
  2.  
  3. #introBox .clickOrder {
  4. background: url(../images/blueButtoneLeft.gif) no-repeat;/* Long image */
  5. padding: 14px 0 14px 35px;/* Adjust padding depending on height */
  6. float: left;/* Very important for IE6*/
  7.  
  8. /* Below for decoration */
  9. text-decoration: none;
  10. color: #fff;
  11. font-weight: 700;
  12. margin: 0 0 20px 20px;
  13. }
  14. #introBox .clickOrder span {
  15. background: url(../images/blueButtoneRight.gif) top right no-repeat;/* Overlap Image */
  16. padding: 12px 26px 14px 0;/* Padding to show the overlap image on the right */
  17. }

以上是关于按钮滑动门的主要内容,如果未能解决你的问题,请参考以下文章

按钮滑动门

片段内的按钮

我的应用程序使用片段,但我需要从左到右从右向左滑动

在一个片段中检测Recyclerview的上下滑动,我怎么做?

找不到用于片段的id 0x7f0800c4的视图

转到ViewPager中的下一页