Apps Scriptリファレンス: Apps Script Reference |障害・課題追跡: IssueTracker |Google Workspace: Status Dashboard - Summary

2019年3月2日土曜日

テキストエリア内の行の高さを指定する


スタイルの指定で line-height: 150%; のように書いてみる。

デモ





コード.gs
function doGet() {
  return HtmlService.createHtmlOutputFromFile("index");
}
意訳
この機能がやること
指定したHTMLファイルを表示する




index.html
<!DOCTYPE html>
<html>

<head>
    <style>
      textarea {
        height: 120px;
        line-height: 150%;
      }
    </style>
</head>

<body>
  <textarea></textarea>
</body>
</html>

意訳
 




テキストエリアのスタイル
高さは120ピクセル
1行の高さは150%





テキストエリア





Latest post

Googleドライブ内の音声ファイルをiframe内で再生したい

iframe の src にGoogleドライブ内の音声ファイルを埋め込む例です (今回試した音声ファイルはmp3) Code.gs function doGet () { return HtmlService . createTemplateFromFile ( ...