cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <link href="https://fonts.googleapis.com/earlyaccess/mplus1p.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/earlyaccess/roundedmplus1c.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/earlyaccess/mplus1p.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/earlyaccess/hannari.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/earlyaccess/kokoro.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/earlyaccess/sawarabimincho.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/earlyaccess/sawarabigothic.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/earlyaccess/notosansjapanese.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/earlyaccess/nicomoji.css" rel="stylesheet" />

<section class="section">
  <div class="container">
    <div class="field">
      <div class="columns">
        <div class="column">
          <form name="myForm">
            <label class="label">表示してるフォント</label>
            <p class="control has-icons-left">
              <span class="select">
              <select name="mySelect" id="font_name">
                <option value="wf-mplus1p">m+1p</option>
                <option value="wf-roundedmplus1c">Rounded M+1c</option>
                <option value="wf-hannari">はんなり明朝 Hannari</option>
                <option value="wf-kokoro">こころ明朝 Kokoro</option>
                <option value="wf-sawarabimincho">さわらび明朝 Sawarabi Mincho</option>
                <option value="wf-sawarabigothic">さわらびゴシック Sawarabi Gothic</option>
                <option value="wf-notosansjapanese">Noto Sans Japanese</option>
                <option value="wf-nicomoji">ニコモジ Nico Moji</></option>
              </select>
              </span>
              <span class="icon is-small is-left">
                <i class="fa fa-font"></i>
              </span>
            </p>
          </form>
        </div>
      </div>
      <div class="columns">
        <div class="column">
          <div id="div_font" class="wf-mplus1p">
            <p class="title">選ぶとフォントが切り替わるよ。</p>
            <div class="content">
              <ul>
                <li>クラスメソッドは、AWSのプレミアコンサルティングパートナーです。</li>
                <li>クラスメソッドメンバーズに加入すると、とってもお得!</li>
                <li>AWS事業部はみんなAWSの認定資格を取っていて、その総数は200を超えるよ。</li>
                <li>フートオペレーションが選ばれる理由</li>
                <li>AWS Support Japan様からも表彰をいただいています</li>
                <li>「AWS Partner Summit 2017 Japan」で「2016年AWSサポート特別賞」を受賞しました</li>
                <li>第三者機関より安心・安全を認定されています</li>
              </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
            
          
!
            
              .wf-mplus1p { font-family: "Mplus 1p"; }
.wf-roundedmplus1c { font-family: "Rounded Mplus 1c"; }
.wf-hannari { font-family: "Hannari"; }
.wf-kokoro { font-family: "Kokoro"; }
.wf-sawarabimincho { font-family: "Sawarabi Mincho"; }
.wf-sawarabigothic { font-family: "Sawarabi Gothic"; }
.wf-notosansjapanese { font-family: "Noto Sans Japanese"; }
.wf-nicomoji { font-family: "Nico Moji"; }
            
          
!
            
              var event = document.getElementById('font_name');
event.onchange = function() {
  var font_name = document.myForm.mySelect.value;
  // console.log(font_name);
  // document.getElementById("title").innerHTML = font_name;
  document.getElementById("div_font").className = font_name;
}

            
          
!
999px
Loading ..................

Console