3
2

More than 1 year has passed since last update.

【OutSystems】 テーブルにスクロールバーをつける

Last updated at Posted at 2022-11-11

このような従業員情報にスクロールバーをつけたいとき

今回は垂直方向につけます。キャプチャ.JPG

1. テーブルをコンテナに入れる

c.png

2. Style Classの設定1.JPG"overflow-vertical"

を設定。
overflow は CSS のプロパティで、要素の内容が多すぎて収まらない場合の動作を設定。

3. コンテナの高さを設定2.JPGheight: calc(100vh - 200px);

vh(viewport height)、vw(viewport width) は要素の幅や高さを指定する単位。
ビューポートは表示領域のことで、デスクトップ環境ではブラウザの画面サイズにあたる。

height: calc(100vh - 200px);
calc()関数は、CSSで「四則演算」ができる関数。
上記のように指定すると、指定した要素の高さはブラウザの画面の高さ100%からheightは合計200pxを引いていることになる。

スクロールバーがつきました。3.JPG

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2