This article mainly introduces the relevant information about panel components of Bootstrap components. For more information, see Bootstrap. Twitter is the most popular front-end framework. Bootstrap is based on HTML, CSS, and JAVASCRIPT. It is concise and flexible, making W
Here are 4 ways to achieve this:1. Add the following in the application configuration file (protected/config/main.php):
Php
The code is as follows
Copy Code
' Modules ' =>array (' Admin ' =>array (' Preload ' =>array (' ' Components ' =>array (' ' Class ' => ' Ext.bootstrap.components.Bootstrap ')),// ... Other modules ...)
2. Load on module initialization:
code is as follows
copy code
Like the drop-down menu component, a button group must depend on the button. js plug-in for normal operation. This article describes the Bootstrap button components in detail. If you are interested, you can learn about the button group and the drop-down menu components. You need to rely on the button. js plug-in for normal operation.
Structure: Use a container n
concatenation HTML constructs tree child node function inittree (data) {var strhtml = "";
for (var i = 0; i
1, packaging instructions, to simply look at the above code (1) The function of using (function ($) {}) (JQuery) This anonymous function declaration and immediate execution is to add a custom method to the JQuery object, if you do not understand this type of writing can look at the previous Description JS component Series-- Package your own JS
the time, we put the Drop-down menu very common button group together, to achieve similar to the navigation menu effect:
When used, simply replace the class name of the dropdown container that was previously made with the Drop-down menu with Btn-group, and put it at the same level as the normal button:
Button Vertical Grouping
Only the class names that are grouped horizontally can be replaced by Btn-group. Btn-group-vertical.
The split button is also called the Adaptive Gr
JQuery components are based on Bootstrap DropDownList (full version) and jquerydropdownlist
In the previous document, the DropDownList JQuery plug-in created based on the Bootstrap drop-down menu has implemented the DropDownList JQuery component, but it is a pity. When the scroll bar appears in the drop-down menu, the scroll bar will overwrite the two rounded cor
1 Basic Layout components
Based on the 12 grid system, Bootstrap also provides a variety of basic layout components.CSS component, summarized as 8 types of styles:Base style, color style, dimension style, status style, special element style, side-by-side element style, nested-element style, animated style
1.1 Basic styles
Basic style, generally including text font, color background, border, positioning,
This article will learn how to create collapsible components through bootstrap, as follows what is required you must refer to Jquery.js and bootstrap-collapse.js-these two JavaScript files are located in the Docs/assets/js folder. You can create a collapsible component without writing a lot of JavaScript or calling JavaScript. The first instance of the ins
-collapse= "isCollapsed"collapsed= "coled ()"collapsing= "coling ()"expanded= "exped ()"Expanding= "exping ()"> Divclass= "well well-lg">Some ContentDiv> Div> Div> Body> HTML>The properties that a collapsed control can use Are:(1) Uib-collapse. The default is FALSE. indicates whether the control is closed(2) Collapsed. The function that is called after the component is Closed.(3) Collapsing. the function called before the component is closed. if a rejected promise is retu
No-transition
False
When set to False, a scrolling animation is turned on
No-wrap
False
When set to False, the picture loops through the
Template-url
Uib/template/carousel/carousel.html
The default template
The properties that the Uib-slide directive can use are:
Property name
Default value
Note
Actual
Sets an object that will be bound to the scope of the scroll page
Examples of BootStrap image styles, helper styles, and CSS components are described in detail,
First, add the template code:
Image Style
. Img-responsive: add this style directly to the image to implement a responsive image.
. Center-block: The image center style, but not the text-center style.
Image shape:. img-rounded (rounded image),. img-circle (circular image),. img-thumbnail (border rounded corner)
List components are used to present complex and custom content in a list format.
To create a list group, you only need to complete the following two steps:
(1) Add class. List-group to Element (2) Add Class. List-group-item to
Look at the following example:
The effect is as follows:
Finally, in the above example, in the "leaderboard", add the badge component to the list item. Just add
If you want to further study, you can click here
Bootstrap is a front-end toolkit developed by former Twitter designer Mark Otto and Jacob Thornton, which provides elegant HTML and CSS specifications. Bootstrap is not just a frame, but rather, it changes the whole rules of the game. The framework makes it much easier to design and develop many applications and Web sites, and it has popularized a large number of HTML frameworks as a product.
Chart Compone
There is a small bug when using the menu arrows (I have submitted the bug on GitHub, also got feedback, may be improved), Problem link https://github.com/yahoo/pure/issues/489#issuecomment-103159329The first time to report a bug to the foreigner get feedback very excited ha. Although I used Chinese, but the other side with Google to translate.Pure CSS simple components, for reference bootstrap
. btn-group--Set Div as button group;. btn-group-toolbar--Set Div for button toolbar (must wrap button group);. BTN-GROUP-LG,. Btn-group-sm,. btn-group-xs--change the size of the button group;. btn-group-vertivcal--set the group of buttons vertically stacked;. btn-group-justified--Set Div wrapped button group full of parent elements; Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. Bootstrap G
. nav--specifies that the list element is a navigation component;. nav-tabs--specifies the navigation component's style as a tab page;. nav-pills--specifies the style of the navigation component as a capsule label page;. nav-stacked--specifies that the style of the label page is stacked vertically;. nav-justified--specifies that the style of the label page is justified;. disabled--sets the menu item for the navigation bar component to a disabled style; Copyright NOTICE: This article for Bo Maste
. panel--Specifies the div element Wrapping panel component;. Panel-default,. Panel-primary,. Panel-success,. Panel-info,. Panel-warning,. panel-danger--the contextual effect of the specified panel;. panel-heading--the title section of the Setup Panel;. panel-body--the body part of the Setup Panel;. panel-footer--the footer section of the Setup Panel; Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. Panel of
. list-group--specifies that the Ul/div element is a list group component;. list-group-item--specifies that the element is a list item of a list group;. list-group-item-success,. List-group-item-info,. list-group-item-warning,. list-group-item-danger-- Sets the contextual effect of the list item; The. active--sets the list item to the active state;The. disabled--setting list item is disabled;The. list-group-item-heading--is used to set the title of the list item;. list-group-item-text--used to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.