This article mainly introduces how JS + CSS achieves the rounded corner sliding door effect of adaptive tab width, and implements the rounded corner sliding door function through simple css settings, which is very simple and practical, for more information about how to use JS + CSS to implement the rounded corner sliding door with adaptive tab width, see the example below. Share it with you for your reference. The details are as follows:
This is a JS + CSS sliding door with adaptive width rounded corner. the rounded corner here is mainly implemented by a background image, and the width refers to the width of the navigation on the sliding door, regardless of the number of texts, it will keep going and won't be broken by the content. in terms of compatibility, it is compatible with IE6/7/8. Firefox is not tested yet and should also be compatible.
The running effect is as follows:
The online demo address is as follows:
Http://demo.jb51.net/js/2015/js-css-auto-width-nav-tab-codes/
The code is as follows:
Sliding Door with adaptive width