20象素直尺

來源:互聯網
上載者:User

儲存為:ruler.html

<link rel='stylesheet' type='text/css' href='card.css'>

<SCRIPT LANGUAGE="JavaScript">
<!--
 
 function sj()
 {//alert(chr(10));

  document.write ("<link rel='stylesheet' type='text/css' href='card.css'>");

  document.write ("<TABLE id=ruler cellpadding=0 cellspacing=0>");
  for(i=0;i<20;i++)
   {
    document.write ("<TR><TD  class='td2'>"+i*20+"&nbsp;&nbsp;px"+"</TD></TR><TR><TD></TD></TR>/r/n");
    
   }

  document.write ("</TABLE>");

 }
//-->
</SCRIPT>

<body onload="javascript:sj()">
</body>

儲存為:card.css

body{text-align:center;font:12px #0000ff bold;}
table{text-align:left;font:18px;
font-weight:bold;color:#0000ff;
font-family:穝燦砰,Ш蔨,arial;
}
.tdbz{text-align:center;font:20px;font-weight:bold;
color:#0000ff;font-family:穝燦砰,Ш蔨,arial;
}
.tdzy{
text-align:left;font:12px;color:#000000;
font-family:穝燦砰,Ш蔨,arial;
padding:0px 0px 0px 2px;
width:342;
height:191;
background:white;
border:1px black solid;
}
.tdzy h2{text-align:center;font:12px;
color:#000000;padding:5px;margin:0px;background:#ffffff;}
.tdzy ol
{
text-align:left;font:12px;letter-spacing: 3px
color:#000000;padding:5px 2px 3px 40px;
margin:0px;background:#ffffff;
}
.tdzy ul
{
text-align:left;font:12px;
color:#000000;padding:10px 2px 3px 40px;
margin:0px;background:#ffffff;
}
.left{
text-align:left;
width:345;
height:191;
background:white;
border:1px black solid;
padding-bottom:0px;
}
.maintd{
text-align:left;
width:345;
height:161;
background:#ffffff;
padding:0px;
}
#ruler{
text-align:center;
background:#dddddd;
padding:0px;
margin:0px;
width:30px;
border:0px solid #0000ff;
font:7pt;
}
#ruler td{
text-align:center;
background:#000000;
padding:0px 0px 0px 0px;
border-bottom:0px solid #ff0000;
margin:0px;
height:1px ;
}
#ruler .td2{
text-align:center;
background:#ffffff;
padding:0px;
border-right:1px solid #000000;
margin:0px;
height:19px ;
}

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.