###前提・実現したいこと
checkboxを画像に差し替えているのですが、マウスをクリックしたとき枠線が出てしまいます。
この枠線を消したいのですが、やり方がわかりません。
ご存知の方いらしたらご教示お願いします。
###発生している問題・エラーメッセージ
下の画像のように青い枠線が出てしまいます。
###該当のソースコード
画像(check.svg)は下記サイトのフリー素材を使わせてもらっています。
http://icooon-mono.com/11453-%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF%E3%83%9C%E3%83%83%E3%82%AF%E3%82%B9%E3%81%AE%E3%83%95%E3%83%AA%E3%83%BC%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%B3/
html
1<!DOCTYPE html> 2<html lang="ja"> 3<head> 4<meta charset="utf-8"> 5<title>test</title> 6<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> 7<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script> 8 9<style type="text/css"> 10input[type="checkbox"] { 11 -webkit-appearance: none; 12 position: relative; 13 display: inline-block; 14 width: 32px; 15 height: 32px; 16 background: url(); 17 background-size: contain; 18} 19 20input[type="checkbox"]:checked:before { 21 content: ""; 22 position: absolute; 23 left: 0px; 24 top: 0px; 25 display: inline-block; 26 width: 32px; 27 height: 32px; 28 background: url(check.svg); 29 background-size: contain; 30} 31</style> 32</head> 33<body> 34 35<div class="container"> 36<div class="row"> 37 <table class="table table-striped table-bordered table-condensed table-responsive table-hover"> 38 <thead> 39 <tr> 40 <th>選択</th> 41 <th>test1</th> 42 <th>test2</th> 43 </tr> 44 </thead> 45 <tbody> 46 <tr> 47 <td class="check"> 48 <input type="checkbox" id="chk_1"> 49 </td> 50 <td class="no">テスト1</td> 51 <td class="no">テスト2</td> 52 </tr> 53 </tbody> 54 </table> 55</div> 56</div> 57 58<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> 59</body> 60</html>
###補足情報(言語/FW/ツール等のバージョンなど)
Bootstrap3
jQuery 1.12.4
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/10/06 14:10 編集