日期:2014-05-17  浏览次数:20652 次

晚上看了会html写了一个简单的不能再简单的网页…
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
        <title>水调歌头—苏轼</title> 
    </head>
    <script>
        function show() {
            var date = new Date(); //日期对象 
            var now = "";
            now = date.getFullYear() + "年"; //读英文就行了 
            now = now + (date.getMonth() + 1) + "月"; //取月的时候取的是当前月-1如果想取当前月+1就可以了 
            now = now + date.getDate() + "日";
            now = now + date.getHours() + "时";
            now = now + date.getMinutes() + "分";
            now = now + date.getSeconds() + "秒";
            document.getElementById("nowDiv").innerHTML = now; //div的html是now这个字符串 
            setTimeout("show()", 1000); //设置过1000毫秒就是1秒,调用show方法 
        } 
        </script>
    <body bgcolor=silver  onload="show()" >
            <a href="http://blog.csdn.net/ustcqi"><font color=#aqua>ustcqi</font></a>   <br />
        <center><font face=黑体 size=6 color="#aqua">Welcome to  ustcqi's blog, have a nice day!</font></center> 
        <br />
        <div id="nowDiv" align=center></div>
        <br />
        <center><font face=宋体 size=5 color=aqua>大江东去,浪淘尽。</font></center>
        <center><font face=宋体 size=5 color=aqua>千古风流人物。</font></center>
        <center><font face=宋体 size=5 color=aqua>故垒西边,人道是,三国周郎赤壁。</font></center>
        <center><font face=宋体 size=5 color=aqua>乱石崩云,惊涛拍岸,卷起千堆雪。</font></center>
        <center><font face=宋体 size=5 color=aqua>江山如画,一时多少豪杰!</font></center>
        <center><font face=宋体 size=5 color=aqua>遥想公瑾当年,小乔初嫁了,雄姿英发,羽扇纶巾,谈笑间,樯橹灰飞烟灭。</font></center>
        <center><font face=宋体 size=5 color=aqua>故国神游,多情应笑我,早生华发。</font></center>
        <center><font face=宋体 size=5 color=aqua>人有悲欢离合,月有阴晴圆缺,</font></center>
        <center><font face=宋体 size=5 color=aqua>人间如梦,一樽还酹江月。</font></center>
        <hr />
        <img src="./1.jpg"  title="hehe"   height=400 width=370 align=bottom />
        <img src="./2.jpg"  title="可爱的" height=400 width=480 align=middle/>
        <img src="./3.jpg"  title="漂亮的" height=400 width=370 align=bottom/>
        <hr />
        <table align=right  border="1" valign="bottom">
            <tr>
                <td align=left>QQ:137641131   </td>
            </tr>
            <tr>
                <td align=left>email:ustcqi@gmail.com </td>
            </tr>
            <tr>
                <td align=left>tel:13625293683  </td>
            </tr>
            <tr>
                <td align=left>个人签名:生命不息,奋斗不止.</td>
            </tr>
            <tr>
                <td align=left>© 2012 中国科学技术大学</td>
            </tr>
        </table>
       
    </body>
</html>