質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Webサイト

一つのドメイン上に存在するWebページの集合体をWebサイトと呼びます。

jQuery

jQueryは、JavaScriptライブラリのひとつです。 簡単な記述で、JavaScriptコードを実行できるように設計されています。 2006年1月に、ジョン・レシグが発表しました。 jQueryは独特の記述法を用いており、機能のほとんどは「$関数」や「jQueryオブジェクト」のメソッドとして定義されています。

HTML

HTMLとは、ウェブ上の文書を記述・作成するためのマークアップ言語のことです。文章の中に記述することで、文書の論理構造などを設定することができます。ハイパーリンクを設定できるハイパーテキストであり、画像・リスト・表などのデータファイルをリンクする情報に結びつけて情報を整理します。現在あるネットワーク上のほとんどのウェブページはHTMLで作成されています。

CSS

CSSはXMLやHTMLで表現した色・レイアウト・フォントなどの要素を指示する仕様の1つです。

Q&A

1回答

3041閲覧

jQueryプラグイン"shuffle.js"を用いたAND検索の実装について

退会済みユーザー

退会済みユーザー

総合スコア0

Webサイト

一つのドメイン上に存在するWebページの集合体をWebサイトと呼びます。

jQuery

jQueryは、JavaScriptライブラリのひとつです。 簡単な記述で、JavaScriptコードを実行できるように設計されています。 2006年1月に、ジョン・レシグが発表しました。 jQueryは独特の記述法を用いており、機能のほとんどは「$関数」や「jQueryオブジェクト」のメソッドとして定義されています。

HTML

HTMLとは、ウェブ上の文書を記述・作成するためのマークアップ言語のことです。文章の中に記述することで、文書の論理構造などを設定することができます。ハイパーリンクを設定できるハイパーテキストであり、画像・リスト・表などのデータファイルをリンクする情報に結びつけて情報を整理します。現在あるネットワーク上のほとんどのウェブページはHTMLで作成されています。

CSS

CSSはXMLやHTMLで表現した色・レイアウト・フォントなどの要素を指示する仕様の1つです。

0グッド

0クリップ

投稿2020/09/14 16:35

編集2020/09/23 08:50

jQueryプラグイン"shuffle.js"を用いたAND検索の実装について

記事を設定したラベルでフィルタリングするページを作成しています。
例えばラベルAとラベルB,両方の属性を持つを絞りたいといった感じです。
ラベルAだけといった単一のラベルを用いた絞り込みはできているのですが,2つ以上のラベルの実装で行き詰まっています

二つ目のボタンを押すとそれ以前に押したラベルのアクティブ状態がクリアされる

<script> $(function() { //ボタンが押されたときの処理 $('#btn li').on('click', function() { var $this = $(this), $grid = $('#animationList'); $('#btn .active').removeClass('active') $this.addClass('active'); $grid.shuffle($this.data('group')); }); $('#animationList').shuffle({ group: 'all', speed: 700, easing: 'ease-in-out' }); }); </script>

HTML

HTML

1</head> 2<body> 3<div id="wrapper"> 4 <h1>Search Field</h1> 5 <ul id="btn"> 6 <li data-group="health" name="health" id="health"># Health Care</li> 7 <li data-group="learning" name="learning" id="learning"># Learning / Optimization</li> 8 <li data-group="stim" name="stim" id="stim"># Electrical Stimulation</li> 9 </ul> 10 <ul id="btn"> 11 <li data-group="robot" name="robot" id="robot"># Robotics</li> 12 <li data-group="vrar" name="vrar" id="vrar"># VR / AR</li> 13 <li data-group="autonomous" name="autonomous" id="autonomous"># Autonomous Control</li> 14 </ul> 15 <ul id="btn"> 16 <li data-group="ah" name="ah" id="ah"># Human Augumentation</li> 17 <li data-group="is" name="is" id="is"># Real Work Space</li> 18 <li data-group="sc" name="sc" id="sc"># Smart Charging</li> 19 </ul> 20</br> 21</br> 22<h1>Our Research</h1> 23</hr> 24</br> 25</br> 26 <ul id="animationList" style="position: relative; transition: height 700ms ease-in-out 0s; height: 720px;"> 27 <li data-groups="[&quot;health&quot;,&quot;ah&quot;,&quot;stim&quot;,&quot;vrar&quot;]" class="filtered" data-x="0" data-y="0" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1);"><span class="grey">記事A</span></li> 28 <li data-groups="[&quot;learning&quot;,&quot;ah&quot;,&quot;stim&quot;,&quot;vrar&quot;]" class="filtered" data-x="240" data-y="0" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(240px, 0px, 0px) scale3d(1, 1, 1);"><span class="grey">Motionless</span></li> 29 <li data-groups="[&quot;is&quot;,&quot;ah&quot;,&quot;vrar&quot;]" class="filtered" data-x="480" data-y="0" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(480px, 0px, 0px) scale3d(1, 1, 1);"><span class="grey">記事B</span></li> 30 <li data-groups="[&quot;ah&quot;,&quot;vrar&quot;]" class="filtered" data-x="720" data-y="0" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(720px, 0px, 0px) scale3d(1, 1, 1);"><span class="grey">記事C</span></li> 31 <li data-groups="[&quot;learning&quot;,&quot;health&quot;,&quot;ah&quot;,&quot;stim&quot;]" class="filtered" data-x="0" data-y="240" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(0px, 240px, 0px) scale3d(1, 1, 1);"><span class="grey">記事D</span></li> 32 <li data-groups="[&quot;is&quot;,&quot;learning&quot;,&quot;health&quot;]" class="filtered" data-x="240" data-y="240" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(240px, 240px, 0px) scale3d(1, 1, 1);"><span class="grey">記事E</span></li> 33 <li data-groups="[&quot;robot&quot;,&quot;is&quot;,&quot;learning&quot;]" class="filtered" data-x="480" data-y="240" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(480px, 240px, 0px) scale3d(1, 1, 1);"><span class="grey">記事F</span></li> 34 <li data-groups="[&quot;sc&quot;,&quot;autonomous&quot;,&quot;robot&quot;,&quot;is&quot;]" class="filtered" data-x="720" data-y="240" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(720px, 240px, 0px) scale3d(1, 1, 1);"><span class="grey">記事G</span></li> 35 <li data-groups="[&quot;sc&quot;,&quot;autonomous&quot;,&quot;learning&quot;]" class="filtered" data-x="0" data-y="480" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(0px, 480px, 0px) scale3d(1, 1, 1);"><span class="grey">記事H</span></li> 36 <li data-groups="[&quot;sc&quot;,&quot;autonomous&quot;,&quot;is&quot;]" class="filtered" data-x="240" data-y="480" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(240px, 480px, 0px) scale3d(1, 1, 1);"><span class="grey">記事I</span></li> 37 </ul> 38</div> 39</body></html>

CSS

CSS

1/* html5 2---------------------------------------------------------------*/ 3article, 4aside, 5details, 6figcaption, 7figure, 8footer, 9header, 10hgroup, 11menu, 12nav, 13section { 14 display: block; 15 margin: 0; 16 padding: 0; 17} 18body { 19 background-color: #f6f6f6; 20} 21#wrapper { 22 width: 1360px; 23 margin: 0 auto; 24 color: #7d7d7d; 25 padding-top: 30px; 26 padding-bottom: 60px; 27} 28h1 { 29 margin: 50px 0 70px; 30} 31.alpha { 32 display: inline-block\9; 33 zoom: 1; 34 line-height: 1; 35} 36.alpha:hover { 37 opacity: 0.9; 38 filter: alpha(opacity=70); 39} 40.active { 41 background-color: #EEEEEE; 42 color:#ff8c00; 43} 44#btn { 45 overflow: hidden; 46 margin-top: 50px; 47 margin-bottom: 40px; 48 display: : inline-block; 49 font-size: 22px; 50 cursor: pointer; 51} 52#btn li { 53 float: left; 54 margin: 10px; 55 cursor: pointer; 56 border: solid; 57 border-width: 2px; 58 padding: 10px; 59 box-shadow: 2px 2px 4px #808080; 60} 61#animationList { 62 overflow: hidden; 63} 64#animationList li { 65 width: 390px; 66 height: 390px; 67 padding: 10px; 68 float: left; 69 color: #fff; 70} 71#animationList li span { 72 display: block; 73 width: 360px; 74 height: 340px; 75 padding: 20px; 76} 77.box_image{ 78 height: 220px; 79 overflow-x: hidden; 80 overflow-y: hidden; 81} 82.red { 83 background-color: #cf0000; 84} 85.blue { 86 background-color: #0208da; 87} 88.green { 89 background-color: #2baa08; 90} 91.yellow { 92 background-color: #e8ec04; 93} 94.grey{ 95 background-color: #555555; 96} 97/* Reset 98------------------------------------------------------------*/ 99body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, form, fieldset, input, textarea, p, blockquote, th, td { 100 margin: 0; 101 padding: 0; 102} 103address, em, strong, th { 104 font-style: normal; 105} 106table { 107 border-collapse: collapse; 108 border-spacing: 0; 109} 110th { 111 text-align: left; 112} 113hr, legend { 114 display: none; 115} 116h1, h2, h3, h4, h5, h6 { 117 font-size: 100%; 118} 119img { 120 border: 0; 121 vertical-align: middle; 122} 123li { 124 list-style-type: none; 125} 126/* Fonts 127------------------------------------------------------------*/ 128body { 129 font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Osaka,"MS Pゴシック","MS PGothic",Arial,Helvetica,Verdana,sans-serif; 130 line-height: 1.5; 131 color: #313131; 132} 133/* clearfix 134------------------------------------------------------------*/ 135.clearfix:after { 136 content: ""; 137 display: block; 138 font-size: 0; 139 visibility: hidden; 140 height: 0; 141 clear: both; 142} 143/* clearfix for IE7 */ 144.clearfix { 145 display: inline-block; 146} 147.clearfix { 148 display: block; 149}

参考サイト

元のコードは以下のサイトから引っ張ってきました。
N - log.net

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

kuma_kuma_

2020/09/23 06:02

うまくいかなかった原因が質問者様にないのに(JQueryのバグ) なぜ質問を消されたのですか? 質問内容を消すのはルール違反になります。
guest

回答1

0

まずjqueryは3.3.1にバージョンアップして下さい
shuffleのカスタムフィルタ機能が正常に動作しません。
動かす前に
stylesheet
jquery.shuffle.min.js
URL指定の確認をして下さい。

今回の問題点
・タグにつけるId値は同じ名前を使わないで下さい。("btn"の事)
正常に動きません
・jqueryのバージョンにも注意してください。

今後この質問を見る方向けに詳細を記載します。

今回使っているshuffle.jsはバージョンが古いです。
その為ドキュメントが残っておらずshuffle.js自体の解析が必要でした。
フィルタ実行時($grid.shuffle)に判定用functonを指定すれば任意の条件で絞り込める事が
判ったんですが今度はjqueryが古い為、画像のliがはじめの1件を繰り返し送るという現象が起きました。
これはjqueryは3.3.1にバージョンアップで対応
あとは抽出条件の配列変数とdata-groupsの値でマッチ確認して
全てマッチしている場合Trueを返しています。

HTML

1<!DOCTYPE html> 2<html lang="ja"> 3<head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 <link rel="stylesheet" href="stylesheet.css"> 7<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> 8<script src="jquery.shuffle.min.js"></script> 9<script> 10 11 var groupmap = {}; // ボタン押下状況 12 13 $(function() { 14 //ボタンが押されたときの処理 15 $('.btn li').on('click', function() { 16 17 var $this = $(this), 18 $grid = $('#animationList'); 19 var group = $this.data('group'); 20 var groups = []; 21 22 // ボタンのOnOff切り替え 23 if(groupmap[group] == 'active'){ 24 $this.removeClass('active'); 25 groupmap[group] = 'deactivate'; 26 } else { 27 $this.addClass('active'); 28 groupmap[group] = 'active'; 29 } 30 31 // 選択されているボタン取得 32 for(var key in groupmap){ 33 if(groupmap[key] == 'active') groups.push(key); 34 } 35 36 // フィルター処理 37 $grid.shuffle(function filterEachItem(element, shuffle) { 38 var cnt = 0; 39 var dg = ""; 40 41 // data-groups取得 42 for(var i = 0; i < element[0].attributes.length; i++){ 43 if(element[0].attributes[i].localName == 'data-groups'){ 44 dg = element[0].attributes[i].nodeValue; 45 break; 46 } 47 } 48 49 // data-groupsとの比較 50 groups.forEach(function(elem, index) { 51 var reg = new RegExp('[\'\"]' + elem + '[\'\"]'); 52 var result = dg.match(reg); 53 if(!result) cnt++; 54 }); 55 return (cnt == groups.length); 56 }); 57 }); 58 59 $('#animationList').shuffle({ 60 group: 'all', 61 speed: 700, 62 easing: 'ease-in-out' 63 }); 64 }); 65 66</script> 67</head> 68<body> 69<div id="wrapper"> 70 <h1>Search Field</h1> 71 <ul class="btn"> 72 <li data-group="health" name="health" id="health"># Health Care</li> 73 <li data-group="learning" name="learning" id="learning"># Learning / Optimization</li> 74 <li data-group="stim" name="stim" id="stim"># Electrical Stimulation</li> 75 </ul> 76 <ul class="btn"> 77 <li data-group="robot" name="robot" id="robot"># Robotics</li> 78 <li data-group="vrar" name="vrar" id="vrar"># VR / AR</li> 79 <li data-group="autonomous" name="autonomous" id="autonomous"># Autonomous Control</li> 80 </ul> 81 <ul class="btn"> 82 <li data-group="ah" name="ah" id="ah"># Human Augumentation</li> 83 <li data-group="is" name="is" id="is"># Real Work Space</li> 84 <li data-group="sc" name="sc" id="sc"># Smart Charging</li> 85 </ul> 86 <br> 87 <br> 88 <h1>Our Research</h1> 89 <br> 90 <br> 91 92 <ul id="animationList" style="position: relative; transition: height 700ms ease-in-out 0s; height: 720px;"> 93 <li data-groups="[&quot;health&quot;,&quot;ah&quot;,&quot;stim&quot;,&quot;vrar&quot;]" class="filtered" data-x="0" data-y="0" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1);"><span class="grey">記事A</span></li> 94 <li data-groups="[&quot;learning&quot;,&quot;ah&quot;,&quot;stim&quot;,&quot;vrar&quot;]" class="filtered" data-x="240" data-y="0" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(240px, 0px, 0px) scale3d(1, 1, 1);"><span class="grey">Motionless</span></li> 95 <li data-groups="[&quot;is&quot;,&quot;ah&quot;,&quot;vrar&quot;]" class="filtered" data-x="480" data-y="0" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(480px, 0px, 0px) scale3d(1, 1, 1);"><span class="grey">記事B</span></li> 96 <li data-groups="[&quot;ah&quot;,&quot;vrar&quot;]" class="filtered" data-x="720" data-y="0" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(720px, 0px, 0px) scale3d(1, 1, 1);"><span class="grey">記事C</span></li> 97 <li data-groups="[&quot;learning&quot;,&quot;health&quot;,&quot;ah&quot;,&quot;stim&quot;]" class="filtered" data-x="0" data-y="240" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(0px, 240px, 0px) scale3d(1, 1, 1);"><span class="grey">記事D</span></li> 98 <li data-groups="[&quot;is&quot;,&quot;learning&quot;,&quot;health&quot;]" class="filtered" data-x="240" data-y="240" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(240px, 240px, 0px) scale3d(1, 1, 1);"><span class="grey">記事E</span></li> 99 <li data-groups="[&quot;robot&quot;,&quot;is&quot;,&quot;learning&quot;]" class="filtered" data-x="480" data-y="240" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(480px, 240px, 0px) scale3d(1, 1, 1);"><span class="grey">記事F</span></li> 100 <li data-groups="[&quot;sc&quot;,&quot;autonomous&quot;,&quot;robot&quot;,&quot;is&quot;]" class="filtered" data-x="720" data-y="240" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(720px, 240px, 0px) scale3d(1, 1, 1);"><span class="grey">記事G</span></li> 101 <li data-groups="[&quot;sc&quot;,&quot;autonomous&quot;,&quot;learning&quot;]" class="filtered" data-x="0" data-y="480" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(0px, 480px, 0px) scale3d(1, 1, 1);"><span class="grey">記事H</span></li> 102 <li data-groups="[&quot;sc&quot;,&quot;autonomous&quot;,&quot;is&quot;]" class="filtered" data-x="240" data-y="480" style="position: absolute; top: 0px; left: 0px; opacity: 1; transition: transform 700ms ease-in-out 0s, opacity 700ms ease-in-out 0s; margin-top: 0px; margin-right: 0px; transform: translate3d(240px, 480px, 0px) scale3d(1, 1, 1);"><span class="grey">記事I</span></li> 103 </ul> 104</div> 105</body> 106</html>

btnをID指定からClass指定に変更

CSS

1/* html5 2---------------------------------------------------------------*/ 3article, 4aside, 5details, 6figcaption, 7figure, 8footer, 9header, 10hgroup, 11menu, 12nav, 13section { 14 display: block; 15 margin: 0; 16 padding: 0; 17} 18 19body { 20 background-color: #f6f6f6; 21} 22 23#wrapper { 24 width: 1360px; 25 margin: 0 auto; 26 color: #7d7d7d; 27 padding-top: 30px; 28 padding-bottom: 60px; 29} 30 31h1 { 32 margin: 50px 0 70px; 33} 34 35.alpha { 36 display: inline-block\9; 37 zoom: 1; 38 line-height: 1; 39} 40 41.alpha:hover { 42 opacity: 0.9; 43 filter: alpha(opacity=70); 44} 45 46.active { 47 background-color: #EEEEEE; 48 color:#ff8c00; 49} 50/* btnをID指定からClass指定に変更 */ 51.btn { 52 overflow: hidden; 53 margin-top: 50px; 54 margin-bottom: 40px; 55 display: : inline-block; 56 font-size: 22px; 57 cursor: pointer; 58 59} 60 61.btn li { 62 float: left; 63 margin: 10px; 64 cursor: pointer; 65 border: solid; 66 border-width: 2px; 67 padding: 10px; 68 box-shadow: 2px 2px 4px #808080; 69} 70 71#animationList { 72 overflow: hidden; 73} 74 75#animationList li { 76 width: 390px; 77 height: 390px; 78 padding: 10px; 79 float: left; 80 color: #fff; 81} 82 83#animationList li span { 84 display: block; 85 width: 360px; 86 height: 340px; 87 padding: 20px; 88} 89 90.box_image{ 91 height: 220px; 92 overflow-x: hidden; 93 overflow-y: hidden; 94} 95 96.red { 97 background-color: #cf0000; 98} 99 100.blue { 101 background-color: #0208da; 102} 103 104.green { 105 background-color: #2baa08; 106} 107 108.yellow { 109 background-color: #e8ec04; 110} 111 112.grey{ 113 background-color: #555555; 114} 115/* Reset 116------------------------------------------------------------*/ 117body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, form, fieldset, input, textarea, p, blockquote, th, td { 118 margin: 0; 119 padding: 0; 120} 121 122address, em, strong, th { 123 font-style: normal; 124} 125 126table { 127 border-collapse: collapse; 128 border-spacing: 0; 129} 130 131th { 132 text-align: left; 133} 134 135hr, legend { 136 display: none; 137} 138 139h1, h2, h3, h4, h5, h6 { 140 font-size: 100%; 141} 142 143img { 144 border: 0; 145 vertical-align: middle; 146} 147 148li { 149 list-style-type: none; 150} 151 152/* Fonts 153------------------------------------------------------------*/ 154body { 155 font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Osaka,"MS Pゴシック","MS PGothic",Arial,Helvetica,Verdana,sans-serif; 156 line-height: 1.5; 157 color: #313131; 158} 159 160/* clearfix 161------------------------------------------------------------*/ 162.clearfix:after { 163 content: ""; 164 display: block; 165 font-size: 0; 166 visibility: hidden; 167 height: 0; 168 clear: both; 169} 170 171/* clearfix for IE7 */ 172.clearfix { 173 display: inline-block; 174} 175 176.clearfix { 177 display: block; 178}

投稿2020/09/19 16:14

kuma_kuma_

総合スコア2506

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問