LoginSignup
0
0

More than 5 years have passed since last update.

checkの文字コード

Posted at

fontawesomeでもいいが、単純に文字コードで。

.checked:before{content:'\2714'}
String.fromCharCode(0x2714)

全部

<label class="checked"></label><br>
<label class="a"></label>
<style>.checked:before{content:'\2714'}</style>
<script>document.querySelector('.a').textContent=String.fromCharCode(0x2714)</script>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0