Knowledge Point
- + CSS adjacent sibling selectors
adjacent sibling selector (Adjacent sibling selector) select another element immediately after the element, and both have the same parent element.
Adjacent sibling selector uses the plus sign (+), i.e., adjacent Brothers binding character (Adjacent sibling combinator). - Phone font icons:
content: '\e958';
Phone Fonts icon:content: '\e942';
- bootstrap outermost telescopic container:
class="container"
- bootstrap layout and retractable center:
d-flex justify-content-center align-items-center
jQuery.data(element,[key],[value])
: Data is stored in the element returns jQuery object.
For example: In the interface index
In the js, you can<div class="carousel-item active" data-sm-img="images/slide_01_900x410.jpg" data-lg-img="images/slide_01_2000x410.jpg"></div> <div class="carousel-item" data-sm-img="images/slide_02_900x410.jpg" data-lg-img="images/slide_02_2000x410.jpg"></div> <div class="carousel-item" data-sm-img="images/slide_03_900x410.jpg" data-lg-img="images/slide_03_2000x410.jpg"></div>
Get the path value.$('.carousel-item').data('lg-img')
- bootstrap in fillet
rounded-circle
- You may be used
order-*
to adjust the display order - Retractable two-step layout
container+row
<div class="container"> <div class="row"> *** </div> </div>
- It can be used
offset
to set the offset amount adjusting position - Js jQuery object to convert the object can be taken directly by the subscript
- Carousel Figure through
.carousel('prev')
and.carousel('next')
around the trigger slip events - Look reduction element in jQuery
let $ul = $("#lk_product .nav"); let $allLis = $(".nav-item", $ul);
running result