【问题标题】:Negative margin-right is not behaving correctly in chrome负边距在 chrome 中的行为不正确
【发布时间】:2013-01-05 05:13:19
【问题描述】:

大家好,我正在尝试使用另一个 div 裁剪图像。 Margin -left,-top,-bottom 工作,但由于某种原因,margin-right 似乎不适用于我在 chrome 上。有什么想法我应该做什么?我已经尝试了好几个小时:c

http://knowmad.herokuapp.com/sunapp/10/

【问题讨论】:

    标签: html css google-chrome margin


    【解决方案1】:

    我不太确定为什么 margin-right 不起作用,但您是否考虑过使用 clip 属性?

    http://webdesignerwall.com/tutorials/5-simple-but-useful-css-properties

    【讨论】:

      【解决方案2】:

      在右边距中使用像素而不是百分比。即margin-right:20px

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-04-16
        • 1970-01-01
        • 2011-12-10
        • 1970-01-01
        • 2014-10-02
        • 2011-08-10
        • 2017-11-25
        • 1970-01-01
        相关资源
        最近更新 更多