---
title: "回到顶部(仅供参考)"
author: "陈先森"
date: "2013-04-22T11:21:27Z"
tags: []
categories: ["Web前端"]
slug: "untitled"
draft: false
lastmod: "2013-04-22T11:21:27Z"
id: 1844963
url: "https://zhanchan.iteye.com/blog/1844963"
---

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;

&lt;head&gt;

    &lt;title&gt;aa&lt;/title&gt;

    &lt;style type="text/css"&gt;

        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;

 

        }

    &lt;/style&gt;

&lt;/head&gt;

&lt;body&gt;

    &lt;input type="file" id="aa" /&gt;

    &lt;div id="d-top"&gt;

        &lt;a id="d-top-a" href="#" title="回到顶部"&gt;

            &lt;img src="http://static.blog.csdn.net/images/top.png" alt="TOP" /&gt;

        &lt;/a&gt;

    &lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;