官术网_书友最值得收藏!

Explanation of the data-* HTML5 attributes

To make things more interesting, each div has a tooltip component so as to provide clues to what is happening with containers, when viewing the page in a browser.

The tooltip components are activated through the self-explanatory jQuery calls in step 4 of the recipe.

To make the tooltip components work, their specific options are set in HTML5 data-* attributes. The data-toggle attribute specifies that the component we are using is indeed a tooltip. The data-placement attribute can be set to the following four directions: top, right, bottom, or left. Setting the data-html attribute to "true" allows us to insert HTML inside our tooltip. As can be seen in the browser, this creates a pretty good effect.

The tooltip function in the custom script can be passed several parameters, as explained in the Bootstrap docs.

主站蜘蛛池模板: 综艺| 临颍县| 资溪县| 尉氏县| 旬阳县| 华亭县| 曲周县| 牟定县| 华蓥市| 酉阳| 衡山县| 达孜县| 乌拉特中旗| 揭西县| 新干县| 南和县| 汕尾市| 兴安县| 丹巴县| 沾益县| 桐庐县| 灵宝市| 唐河县| 松江区| 乌什县| 鄂州市| 黑河市| 滦南县| 泸西县| 唐海县| 河池市| 蛟河市| 康保县| 留坝县| 宜都市| 龙陵县| 新丰县| 乐都县| 荣成市| 基隆市| 福海县|