Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CSS定位Safari与Chrome的区别_Css_Google Chrome_Safari_Positioning - Fatal编程技术网

CSS定位Safari与Chrome的区别

CSS定位Safari与Chrome的区别,css,google-chrome,safari,positioning,Css,Google Chrome,Safari,Positioning,我在Safari和Chrome测试中有不同的定位结果 CSS .home #colophon { margin-top: -150px; background-color: #000; opacity: .6; height: 150px; } .home #colophon .textwidget { color: #FFF; margin-top: -150px; } HTML <footer id="colophon" cla

我在Safari和Chrome测试中有不同的定位结果

CSS

.home #colophon  {
    margin-top: -150px;
    background-color: #000; 
    opacity: .6;
    height: 150px;  
}
.home #colophon .textwidget {
    color: #FFF;
    margin-top: -150px;
}
HTML

<footer id="colophon" class="site-footer footer-columns" role="contentinfo">

        <div class="container footer-section">
            <div class="row">
                <h2 class="centered">
                    <?php if (bswp_option('footer-banner-title') != '') {
                        echo bswp_option('footer-banner-title');
                        } ?>
                    </h2>
                <hr>
                <div class="col-lg-4">
                    <?php dynamic_sidebar( 'footer-1' ); ?>
                </div>
                <div class="col-lg-4">
                    <?php dynamic_sidebar( 'footer-2' ); ?>
                </div>
                <div class="col-lg-4">
                    <?php dynamic_sidebar( 'footer-3' ); ?>
                </div>
        </div><!-- .row -->
    </div><!-- .containr -->
</footer><!-- #colophon -->


这是我的页面

我想保持我的地址块在两个浏览器的黑色透明区域