レスポンシブデザインでBootstrapを使うと便利そうだが まとめ

http://qiita.com/gaogao_9/items/ec2b867d6941173fd0b1
この記事からみつけ

本家
http://getbootstrap.com/

説明
http://www.tohoho-web.com/ex/bootstrap.html
http://techacademy.jp/magazine/6270

テンプレート
http://coliss.com/articles/build-websites/operation/work/best-templates-for-bootstrap-2015-autumn.html

↑こっから色々あった

http://sounansa.net/archives/1551

ここも

よくつかっておりそうな人のすすめ
http://megane84.com/blog/2013/12/25/post-2682/

この人の会社
http://spot-web.jp/works/
参考になりそうなcss 明朝フォント設定とか 多分 レスポンシブは+料金にしてる

名古屋の良く見る顔の人が作った
無料ワードプレステーマも
使ってみたい

http://demo.vs1.biz/lightning-worksunit-demo/
http://lightning.vektor-inc.co.jp/ja/inquiry

習得中まとめ
bootstrap-theme.css(グラデーションなどを使用したオプションのCSS)
http://bootstrap3-guide.com/base/prepare.html
フラットデザインcss
http://bootstrap3-guide.com/base/prepare_demo_no_theme.html
グラデ等使用
http://bootstrap3-guide.com/base/prepare_demo_theme.html

1
<span class="glyphicon 使いたいアイコンのクラス名" aria-hidden="true"></span>

http://bootstrap3.cyberlab.info/components/glyphicons.html#
aria-hidden=”true”
http://blog.e-riverstyle.com/2015/02/aria-hiddentruespeak-none.html

基本

1
2
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

全てのcssの前に

1
<link rel="stylesheet" type="text/css" href="/bootstrap-3.3.6/css/bootstrap.css"/>

//jqのあとに

1
2
3
<!--ストラップ---->
<script type="text/javascript" src="/bootstrap-3.3.6/js/bootstrap.min.j"></script>
<!--/ストラップ---->

アイコンフォントはcssで設定されているのでアサイン必要なし

いちおこれも入れておいた方がいいかも

1
2
3
4
<!--[if lt IE 9]>
     <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
   <![endif]-->

css無効化

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
html {
  /*font-size: 10px;*/
 
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
 /* font-size: 14px;*/
  line-height: 1.42857143;
  color: #333;
  background-color: #fff;
}
 
input[type="file"] {
/*  display: block;*/
}
 
 
ただしこれは今後有効かしてもよい
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: inherit;
 /* font-weight: 500;*/
/*  line-height: 1.1;*/
  color: inherit;
}
ただしこれは今後有効かしてもよい
/*h1,
.h1 {
  font-size: 36px;
}
h2,
.h2 {
  font-size: 30px;
}
h3,
.h3 {
  font-size: 24px;
}
h4,
.h4 {
  font-size: 18px;
}
h5,
.h5 {
  font-size: 14px;
}
h6,
.h6 {
  font-size: 12px;
}*/

癖としては
全てこうしたる

1
2
3
4
5
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

こうして

1
2
3
4
5
/*ボーダーボックスクリア*/
    .d_bb_clear{
            -webkit-box-sizing:content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box; }

再度

1
2
3
4
<div id="D_menu_all" class="d_bb_clear">
<div id="kensaku" class="d_bb_clear">
ループ
<div id="gallery" class="d_bb_clear">

これで同じ表示
ほぼ