• 課程大綱
    • 課前準備
    • 環境設定
      • 建立課堂練習網站
      • 修改隱私政策條款(Privacy Policy)
    • 參考資料
  • 1 Social Plugins
    • 1.1 典型html檔結構
    • 1.2 Facebook
      • 1.2.1 分享
      • 掌控你的分享設計
      • 1.2.2 讚
      • 1.2.3 留言
      • 1.2.4 好文儲存
      • 1.2.5 粉專
      • 1.2.6 連絡我們
    • 1.3 LINE
  • 2 Google Analytics(GA)
    • 2.1 創立GA帳號
    • 2.2 設定網站追踪
  • 3 Print and Font Size
    • 3.1 列印

網頁外掛功能:GA,Share,Comments

第 3 章 Print and Font Size

3.1 列印

Javascript and Font awesome

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script>
function printPage() {
    window.print();
}
</script>

Button

<button style="font-size:12px" onclick="printPage()" >列印 <i class="fa fa-print"></i></button>