HTML詳しい人ちょっと来て

トレンド

1: 思考 2021/03/22(月) 12:29:24.881 ID:gsnHXf/H0
サイトのホームにそのサイトの1番最後のページに飛ぶボタンを置きたいんだけどソースの書き方が分からないから教えて欲しい

中間おすすめ記事: 思考ちゃんねる

.mm-ttl{ font-size:14px; margin-bottom: 15px;}
.mm-ttl .Ttl-mil{ font-size:14px !important; color: gray;}
.mm-ttl .Ttl-mil span{ color: rgb(0, 128, 0); font-size: 15px !important; font-weight: bold;}
.at_out ul{-webkit-padding-start: 0; margin: 0 !important; padding: 0;}
.at_out li{ list-style-type:none !important; font-size:16px; line-height:1.2; font-weight: bold; margin-left: 0 !important; margin-bottom: 20px !important;}
.at_out li a{ text-decoration:underline; color:rgb(0, 102, 204); list-style-type:none;}
.pc_none{ display:none;}
.sp_none{ display:block;}

2: 思考 2021/03/22(月) 12:30:20.432 ID:fO7IDqET0
HTMLだけでは無理

使ってサーバーは?

5: 思考 2021/03/22(月) 12:32:39.097 ID:gsnHXf/H0
>>2
レンタルサーバーだからhtml以外使えない…

3: 思考 2021/03/22(月) 12:32:01.633 ID:ocSSmCh6M
/ahead

4: 思考 2021/03/22(月) 12:32:27.165 ID:7brzXdRQa
よく分からないんだけど
サイトのホームにそのサイトの1番最後のページに飛ぶボタンを置きたいってこと?

6: 思考 2021/03/22(月) 12:33:00.965 ID:gsnHXf/H0
>>4
まあそんな感じ

7: 思考 2021/03/22(月) 12:33:14.260 ID:NO/IGfy/H
htmlだけだとリンク使えないのけ?

8: 思考 2021/03/22(月) 12:33:53.570 ID:gsnHXf/H0
ページ送りのボタンとかも無理なのかな?

9: 思考 2021/03/22(月) 12:34:51.107 ID:N2c1bicya
JavaScriptがいる

10: 思考 2021/03/22(月) 12:35:46.252 ID:NO/IGfy/H
aタグでいけんじゃね?

中間おすすめ記事: 思考ちゃんねる

.mm-ttl{ font-size:14px; margin-bottom: 15px;}
.mm-ttl .Ttl-mil{ font-size:14px !important; color: gray;}
.mm-ttl .Ttl-mil span{ color: rgb(0, 128, 0); font-size: 15px !important; font-weight: bold;}
.at_out ul{-webkit-padding-start: 0; margin: 0 !important; padding: 0;}
.at_out li{ list-style-type:none !important; font-size:16px; line-height:1.2; font-weight: bold; margin-left: 0 !important; margin-bottom: 20px !important;}
.at_out li a{ text-decoration:underline; color:rgb(0, 102, 204); list-style-type:none;}
.pc_none{ display:none;}
.sp_none{ display:block;}

13: 思考 2021/03/22(月) 12:37:36.650 ID:gsnHXf/H0
>>10aタグでリンクを指定するってこと?

11: 思考 2021/03/22(月) 12:36:43.204 ID:SBtYLt9U0
最後のページのurlはどんな?

14: 思考 2021/03/22(月) 12:38:14.973 ID:gsnHXf/H0
>>11
〇〇.com/135 みたいな感じ

12: 思考 2021/03/22(月) 12:36:52.554 ID:K9Ef443+0
javascriptなくてもトップにid振っておいてボタンをaタグにしてhref="#id名"でできるよ

15: 思考 2021/03/22(月) 12:38:33.955 ID:gsnHXf/H0
>>12
詳しく教えて

17: 思考 2021/03/22(月) 12:40:04.300 ID:K9Ef443+0
>>15
<div id="top"></div>
<a class="button" href="#top">TOPへ</a>

でできる

27: 思考 2021/03/22(月) 12:48:38.625 ID:gsnHXf/H0
>>17
これ多分最後のページだとページ数変わるからid振れないかも

16: 思考 2021/03/22(月) 12:39:38.537 ID:6iP9zX2Pd
可変じゃなきゃできると思うけど

18: 思考 2021/03/22(月) 12:40:23.842 ID:pbf88vpl0
<a href="○○">ここ押すと</a>
<a name="○○">ここに飛ぶ</a>

19: 思考 2021/03/22(月) 12:40:59.013 ID:6E0LrUx6r
Api側で最後のページだけlastとかにしておけばHTMLは/page/lastで良くなる

1001: 思考ちゃんねる

.ninki{ clear:both; margin-bottom: 15px;}
.mm-ttl{ font-size:14px;}
.mm-ttl .Ttl-mil{ font-size:15px !important; color: gray;}
.mm-ttl .Ttl-mil span{ color: rgb(0 128 0); font-size: 15px !important; font-weight: bold;}
.at_out ul{-webkit-padding-start: 0; margin: 0 !important; padding: 0;}
.at_out li{ list-style-type:none !important; font-size:16px; line-height:1.2; font-weight: bold; margin-left: 0 !important; margin-bottom: 20px !important;}
.at_out li a{ text-decoration:underline; color:rgb(0 102 204); list-style-type:none;}
.pc_none{ display:none;}
.sp_none{ display:block;}

Source: mindhack
HTML詳しい人ちょっと来て