ionic[grid][color][icon][color]

ionic网格(Grid)

1 <div class="row">
2     <div class="col col-65 col-offset-10">col</div>
3     <div class="col col-25">col</div>
4 </div>

/***********************************/

响应式网格

1 <div class="row responsive-sm">
2     <div class="col">col</div>
3     <div class="col">col</div>
4     <div class="col">col</div>
5     <div class="col">col</div>
6     <div class="col">col</div>
7 </div>

ionic颜色

 1 <ul class="list">
 2     <li class="item dark">dark</li>
 3     <li class="item stable-dark">stable-dark</li>
 4     <li class="item positive">positive</li>
 5     <li class="item calm">calm</li>
 6     <li class="item balanced">balanced</li>
 7     <li class="item energized">energized</li>
 8     <li class="item assertive">assertive</li>
 9     <li class="item royal">royal</li>
10 </ul>

ionic icon(图标)

1 <i class="icon ion-star"></i>

ionic上拉菜单

 1 <!DOCTYPE html>
 2 <html lang="zh-cn">
 3 <head>
 4     <meta charset="UTF-8">
 5     <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-
 6
 7 scalable=no"/>
 8     <title>ionic应用</title>
 9     <link rel="stylesheet" href="css/ionic.min.css"/>
10 </head>
11 <body ng-app="starter" ng-controller="actionsheetCtrl">
12
13 <ion-pane>
14     <ion-content>
15         <h2 ng-click="show()">Action Sheet</h2>
16     </ion-content>
17 </ion-pane>
18
19 <script src="js/ionic.bundle.min.js"></script>
20 <script>
21     angular.module(‘starter‘, [‘ionic‘])
22
23             .run(function($ionicPlatform) {
24                 $ionicPlatform.ready(function() {
25                     // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
26                     // for form inputs)
27                     if(window.cordova && window.cordova.plugins.Keyboard) {
28                         cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
29                     }
30                     if(window.StatusBar) {
31                         StatusBar.styleDefault();
32                     }
33                 });
34             })
35
36             .controller( ‘actionsheetCtrl‘,[‘$scope‘,‘$ionicActionSheet‘,‘$timeout‘ ,function($scope,$ionicActionSheet,$timeout){
37                 $scope.show = function() {
38
39                     var hideSheet = $ionicActionSheet.show({
40                         buttons: [
41                             { text: ‘<b>分享</b>此页‘ },
42                             { text: ‘复制‘ }
43                         ],
44                         destructiveText: ‘删除‘,
45                         titleText: ‘编辑相册‘,
46                         cancelText: ‘取消‘,
47                         cancel: function() {
48                             // add cancel code..
49                         },
50                         buttonClicked: function(index) {
51                             return true;
52                         }
53                     });
54
55                     /*$timeout(function() {
56                         hideSheet();
57                     }, 2000);*/
58
59                 };
60             }])
61 </script>
62
63 </body>
64 </html>

时间: 2024-10-10 14:29:05

ionic[grid][color][icon][color]的相关文章

JQuery Color: Do Color Animations with jQuery

JQuery color, a jQuery plugin that adds the ability to do color animations to jQuery. Demo effect: Sample code: <style> div { position: absolute; background-color: #fff; width: 90px; height: 90px; border: solid 1px #000; } #testElement1 { left: 50px

NOJ 1072 The longest same color grid(尺取)

Problem 1072: The longest same color grid Time Limits:  1000 MS   Memory Limits:  65536 KB 64-bit interger IO format:  %lld   Java class name:  Main Description There are n grid, m kind of color. Grid number 1 to N, color number 1 to M.  The color of

poj 2777 count color 线段树

Description Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new problem. There is a very long board with length L centimeter, L is a positive integer, so we can evenly d

webDriver API——第14部分Color Support

class selenium.webdriver.support.color.Color(red, green, blue, alpha=1) Bases: object Color conversion support class Example: from selenium.webdriver.support.color import Color print(Color.from_string('#00ff33').rgba) print(Color.from_string('rgb(1,

HDU 1199 - Color the Ball 离散化

[题意]现在有几个球排成一排,编号从1开始,开始时所有球为黑色,现在有n(<=2000)次操作,每次操作将l[i]至r[i](均在int范围)的球凃成颜色c[i](黑色'b'或白色'w'),然后找到最长的连续白色球,输出左右端点符号 [离散化]因为l[i]和r[i]都在int范围,显然不不可以开一个2^31-1那么大的数组.将l[i]和r[i]+1离散化,再模拟染色即可. 如果你不知道离散化: 将l[i]数组所有数与r[i]+1数组所有数取出来从小到大排序,做一个映射. 如样例 3 1 4 w

POJ 2777 Count Color(线段树+位运算)

题目链接:http://poj.org/problem?id=2777 Description Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new problem. There is a very long board with length L centimeter, L is a

POJ 2777 Count Color (线段树区间更新加查询)

Description Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new problem. There is a very long board with length L centimeter, L is a positive integer, so we can evenly d

POJ训练计划2777_Count Color(线段树/成段更新/区间染色)

解题报告 题意: 对线段染色,询问线段区间的颜色种数. 思路: 本来直接在线段树上染色,lz标记颜色.每次查询的话访问线段树,求出颜色种数.结果超时了,最坏的情况下,染色可以染到叶子节点. 换成存下区间的颜色种数,这样每次查询就不用找到叶子节点了,用按位或来处理颜色种数. #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace

POJ 2777 Count Color

C - Count Color Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Practice POJ 2777 Appoint description:  System Crawler  (2015-07-22) Description Chosen Problem Solving and Program design as an optional cours