【问题标题】:How to show only the center of div when window size is smaller窗口大小较小时如何仅显示div的中心
【发布时间】:2011-10-22 21:22:38
【问题描述】:

我在搞乱this site! 而且我想保持 flash 对象居中,即使窗口大小小于 1280,所以它只显示 div 的中心。我希望你知道我在问什么。提前致谢。

【问题讨论】:

    标签: jquery css flash web


    【解决方案1】:

    应该这样做:

    #flashContent
    {
    position: absolute;
    top: 180px;
    left: 50%;
    width : 1280px;
    margin-left: -640px; // half of 1280px
    }
    

    【讨论】:

    • Thirtydot 先回答,他应该得到荣誉。不过谢谢。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-02
    • 2021-01-08
    • 2021-06-21
    • 1970-01-01
    • 2014-07-26
    • 1970-01-01
    相关资源
    最近更新 更多