Re: [問題] 我想要滾輪
※ 引述《newpuli (sheepu)》之銘言:
: 我剛學網頁設計而已
: 很多觀念還是不了解...
: 剛剛寫了一個網頁 這個網頁是要顯示出99乘法表
: code如下:
: <%@ page contentType="text/html;charset=MS950" %>
: <html>
: <head>
: <title>9*9</title>
: </head>
: <body>
: <h2>AAA2</h2>
- <FRAME MARGINWIDTH='1000' >
+ <div style="width:1500px;" > <!--寬度可自己調整-->
: <%
: for(int i = 1; i <= 9; i++)
: {
: for(int j = 1; j <= 9; j++)
: {
: %>
: <span style= "width:100px "><font size="2"> <%
: out.print(i + " * " + j + " = " + i*j);
: %></span></font>
: <%
: }
: out.print("<br>");
: }
: %>
+ </div>
: </body>
: </html>
水平scrollbar預設是auto,當你寬度超過可視範圍之後就會出現了。
--
▄▅▆▇███▇▆▅▄▃ ╰┼╯─╮ ╮
◥███████████◣ ╰┼╯=│=│
◥██████───────◣ *. ╯ ╯ ╯ の 物 語 .*
◥███████──────◣ ~ ◢◣ ◢◣
◥██████───────◤ ◥◤* 空白的世界.翼 *◥◤
◥██▁▂▃▄▅▆▇███▆▅▄▃▂▂~telnet://tony1223.twbbs.org
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.133.218.161
推
03/26 22:51, , 1F
03/26 22:51, 1F
討論串 (同標題文章)