LANG SELRCT

Apps Script Reference  (Create: Create new Spreadsheet | Create new Apps Script

Saturday, March 2, 2019

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


スタイルの指定で 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

スプレッドシートA列にある複数のテキストをスライドに追加したい(Google Apps Script)

今回Google Apps Scriptでやりたいこと GoogleスプレッドシートA列にある複数の値を取得して Googleスライドに渡して 図形オブジェクトのテキストとして追加したい ① スプレッドシートのA列に値を入れておく ② Code.gsのinsertNewShape...