Home  >  Article  >  Web Front-end  >  asp.net 网页设计_html/css_WEB-ITnose

asp.net 网页设计_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:16:42807browse

本人最近刚接触网页设计,请给位指教。我实现如下网页模型,网页有3部分组成,上面嵌入自己设计的logo,下面部分又分成两列,左边放入导航按钮,右边根据用户的选择显示不同的内容。我希望浏览器大小在变化过程中,最上面部分logo大小不变,浏览器不能显示的图片直接就隐藏,不用显示滚动条。而下面部分的两列在竖直方向能够根据浏览器大小的变化分别显示对应的滚动条。求指点呀?


回复讨论(解决方案)

<frameset rows="100,*"><frame src="top.aspx" frameborder=0 scrolling=no/><frameset cols="180,*"><frame src="menu.aspx"  frameborder=0 scrolling=no/><frame name="fmain" src="xxx.aspx"  frameborder=0 scrolling=no/></frameset></frameset>

嗯,谢谢哦,方案可行。不过再问下,html控件的src可以动态切换么?我这样写的代码,不行。
System.Timers.Timer timer = new System.Timers.Timer();
private static int count;
    protected void Page_Load(object sender, EventArgs e)
    {
        count = 0;
        Picture();
        Timer_Start();
        
    }
    protected void Timer_Start()
    {
        timer.AutoReset = true;
        timer.Enabled = true;
        timer.Interval = 5000;
        timer.Elapsed += new System.Timers.ElapsedEventHandler(this.Picture_Show);
    }
    protected void Picture_Show(Object sender, ElapsedEventArgs e)
    {
        count = (count + 1) % 6;
        switch (count)
        {
            case 0: this.imgkt.Src = this.imgkt.ResolveClientUrl("image/UPS.jpg");
            break;
            case 1: this.imgkt.Src = this.imgkt.ResolveClientUrl("image/电量仪.jpg" + "?temp=" + DateTime.Now.Millisecond.ToString());
            break;
            case 2: this.imgkt.Src = this.imgkt.ResolveClientUrl("image/空调.jpg");
            break;
            case 3: this.imgkt.Src = this.imgkt.ResolveClientUrl("image/门禁.jpg");
            break;
            case 4: this.imgkt.Src = this.imgkt.ResolveClientUrl("image/漏水.jpg");
            break;
            case 5: this.imgkt.Src = this.imgkt.ResolveClientUrl("image/温湿度.jpg");
            break;
            default:
            break;
        }
    }
    protected void Picture()
    {
        this.imgkt.Src = this.imgkt.ResolveClientUrl("image/漏水.jpg");
    }
求指教,该如何写代码才能实现img背景的动态切换。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn