前提
chromeの拡張機能をつくっています。
ポップアップを作ったのですが、bodyのサイズを固定しているのにも関わらず制御できません。
div内にtextareaを入れています。
実現したいこと
body内のコンテンツがbodyのheightを超えた時スクロールバーが出るようにしたい
発生している問題・エラーメッセージ
body超えても表示し画面の半分ぐらいに到達したらやっとスクロールバーが出る
該当のソースコード
css
1body { 2 width: 400px; 3 height: 500px; 4 margin: 0; 5 padding: 5px; 6 border: 2px solid rgb(0, 162, 255); 7 background: rgb(218, 238, 255); 8} 9.textarea-style { 10 width: 100%; 11 height: auto; 12 box-sizing: border-box; 13 box-shadow: 0 0 0 1px rgb(128, 230, 255) inset; 14 font-size: 16px; 15 resize: vertical; 16 min-height: 80px; 17 font-family: -apple-system, BlinkMacSystemFont, 18 "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; 19} 20.ta-div { 21 width: auto; 22 height: auto; 23 position: relative; 24 margin: 7px auto auto auto 25}
試したこと
overflow-y:scroll → 同じ動作
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/11/10 13:48
2022/11/10 13:54
2022/11/10 14:18
2022/11/10 14:30