LANG SELRCT

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

Thursday, March 8, 2018

CSSで枠線の表示・非表示


このように枠線の表示・非表示をスタイルで設定する例

divに枠表示





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




index.html
<html>
<head>
  <style>
    .border_solid {
      width: 240px;
      height: 120px;
      border: solid 1px lightgray;
    }

    .border_none {
      width: 240px;
      height: 120px;
      border: none;
    }
  </style>
</head>
<body>
  <div class="border_solid">
  divに枠表示
  </div>
  <br>
  <textarea class="border_none">テキストエリアの枠線非表示</textarea>
</body>
</html>
意訳
 


border_solidのスタイル
幅
高さ
枠線の種類と太さと色


border_noneのスタイル
幅
高さ
枠線なし




div要素にborder_solidを設定


改行
textarea要素にborder_noneを設定




Latest post

Extracting data from Google Sheets with regular expressions

Introduction Regular expressions are a powerful tool that can be used to extract data from text.  In Google Sheets, regular expressions ca...