質問編集履歴

1

関係のないhtmlソースを削除しました

2023/11/30 04:43

投稿

foodtheater
foodtheater

スコア2

test CHANGED
File without changes
test CHANGED
@@ -16,60 +16,9 @@
16
16
 
17
17
  ### 該当のソースコード
18
18
 
19
- ```html
20
- <!DOCTYPE html>
21
- <html lang="en">
22
- <head>
23
- <meta charset="UTF-8">
24
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
25
- <style>
26
- .button-container {
27
- display: flex;
28
- flex-direction: column;
29
- align-items: center;
30
- }
31
-
32
- .button {
33
- width: 70%;
34
- max-width: 400px;
35
- word-wrap: break-word;
36
- text-align: center;
37
- padding: 15px;
38
- margin-bottom: 20px;
39
- border: 1px solid #ccc;
40
- line-height: 1.5;
41
- overflow: hidden;
42
- }
43
-
44
- .button:nth-child(1) {
45
- white-space: nowrap;
46
- }
47
-
48
- .button:nth-child(2) {
49
- line-height: 1.5;
50
- }
51
-
52
- .button:nth-child(3) {
53
- line-height: 1.2;
54
- }
55
- </style>
56
- <title>Resizable Buttons</title>
57
- </head>
58
- <body>
59
- <div class="button-container">
19
+ **※文字数制限のため、htmlは自己解決欄(解決していませんが)に貼ってあります。**
60
- <button class="button">
20
+
61
- 長い文章がここに入ります。長い文章がここに入ります。 <!-- 1行のテキスト -->
21
+
62
- </button>
63
- <button class="button">
64
- 別の文章がここに入ります。別の文章がここに入ります。別の文章がここに入ります。別の文章がここに入ります。 <!-- 2行のテキスト -->
65
- </button>
66
- <button class="button">
67
- さらに別の文章がここに入ります。さらに別の文章がここに入ります。さらに別の文章がここに入ります。さらに別の文章がここに入ります。 <!-- 3行のテキスト -->
68
- </button>
69
- </div>
70
- </body>
71
- </html>
72
- ```
73
22
  ```css
74
23
  @charset "utf-8";
75
24