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

在asp.net里做图片翻页效果失败,高手给点意见....
在网上下载了效果文件,一个index.html  一个放图片的文件夹
将index.html里的代码,制成控件文件,再插入到asp.net里,
没有提示出错.但图片没有翻页的效果.想一早上了,各位给点意见!!
代码如下:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="imglist.ascx.cs" Inherits="UserControl_imglist" %>


 <style id="Style1" type="text/css" runat="server">
        .container, .container *
        {
            margin: 0;
            padding: 0;
        }
        .container
        {
            width: 700px;
            height: 240px;
            overflow: hidden;
            position: relative;
        }
        .slider
        {
            position: absolute;
        }
        .slider li
        {
            list-style: none;
            display: inline;
        }
        .slider img
        {
            width: 700px;
            height: 240px;
            display: block;
        }
        .slider2
        {
            width: 2000px;
        }
        .slider2 li
        {
            float: left;
        }
        .num
        {
            position: absolute;
            right: 5px;
            bottom: 5px;
        }
        .num li
        {
            float: left;
            color: #FF7300;
            text-align: center;