ITeye博客

回到顶部(仅供参考)

陈先森 · 2013-04-22 11:21 · css · Web前端 · Markdown

<!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>aa</title>

    <style type="text/css">

        body

        {

            font-size: 12px;

            font-family: Arial,Console,Verdana,Courier New;

        }

        #d-top

        {

            position: fixed;

            float: right;

            z-index: 10;

            right: 10px;

            bottom: 10px;

            display: block;

            text-align: left;

        }

        a

        {

            color: #CA0000;

            text-decoration: none;

        }

        #d-top

        {

            position: fixed;

            float: right;

            z-index: 10;

            right: 10px;

            bottom: 10px;

        }

        #d-top img

        {

            width: 42px;

            filter: alpha(opcity=30);

            -moz-opacity: 0.3;

            -khtml-opacity: 0.3;

            opacity: 0.3;

        }

        #d-top a:hover img

        {

        filter: alpha(opcity=100);

            -moz-opacity: 1;

            -khtml-opacity: 1;

            opacity: 1;

 

        }

    </style>

</head>

<body>

    <input type="file" id="aa" />

    <div id="d-top">

        <a id="d-top-a" href="#" title="回到顶部">

            <img src="http://static.blog.csdn.net/images/top.png" alt="TOP" />

        </a>

    </div>

</body>

</html>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。