This article introduces a simple and flexible Popular Front-end framework based on HTML, CSS, and JAVASCRIPT. If you need to know about it, refer to Bootstrap, which is based on HTML and CSS launched by Twitter engineers, JAVASCRIPT's concise and flexible Popular Front-end framework can be imagined as a library of CSS and JS with many effects defined. The library has already defined the display effects and animations of various components.
. Dropdown -- set the parent element as the drop-down menu component and bring down the sub-menu;
. Dropup -- set the parent element as the drop-down menu component and bring up the Sub-menu;
. Dropdown-toggle -- set the button to the drop-down menu switch button;
. Dropdown-menu -- set ul element as the drop-down menu;
. Dropdown-menu-right -- align the right of the menu;
. Pull-right -- align the right of the parent element of the menu component;
. Dropdown-header -- add a title for the menu item;
. Pider -- add a split line for the menu item;
. Disabled -- disable corresponding menu items;
The implementation code is as follows:
CSS global style _ drop-down menu