javascript - firefox 将 div 向右推

标签 javascript jquery html css firefox

这是我的第一个问题,我是一个 super 菜鸟,但我渴望学习。

我有这个网站http://autogoog.com/site/#about这是用 html/css 编写和设计的。

该站点在 chrome 和 safari 上看起来不错,但在 firefox 上,团队页面被推到右侧。

这是 html 部分,下面是 css。任何帮助都将是令人惊奇和感激的。

<!-- TEAM STARTS
     ========================================================================= -->
  <section id="team">
     <div class="container">
        <div class="row">
           <div class="col-md-12 section-heading animated" style="text-align:center" data-animation="fadeInUp" data-animation-delay="0">
              <h2>Leadership</h2>
              <h1>meet the team</h1>
              <p class="line">&nbsp;</p>
           </div>           
        <div class="owl-carousel" id="our-team">
           <div class="team-contents animated" data-animation="flipInX" data-animation-delay="0">
              <div class="picture"><a href="mailto:jay@badboybranding.com?subject=BAD BOY BRANDING INQUIRY" class="teamoverlayzoom"><img src="img/team/1.jpg" class="img-responsive" alt=""><span class="zoom"><span><i class="fa fa-envelope"></i></span></span></a></div>
              <div class="heading">JAY LEOPARDI</div>
              <div class="designation">FOUNDER & CEO</div><br>
              <div class="team-social"><a href="#"><i class="fa fa-twitter"></i></a><a href="https://www.facebook.com/jay.leopardi.1?fref=ts"><i class="fa fa-facebook"></i></a><a href="#"><i class="fa fa-google-plus"></i></a></div>
              <p class="smallline">&nbsp;</p>
              <div class="description">Jay Leopardi, lifestyle and pop culture branding expert, is the founder & CEO of Bad Boy Branding.  Working with start-ups to top tier brands, he reinvents the traditional structure of brand development. Visit <a href="http://www.JayLeopardi.com/" target="_blank">JAYLEOPARDI.COM</a> to find out more detailed information.</div>
        </div>
           <div class="team-contents animated" data-animation="flipInX" data-animation-delay="0">
              <div class="picture"><a href="mailto:shawn@badboybranding.com?subject=BAD BOY BRANDING INQUIRY" class="teamoverlayzoom"><img src="img/team/2.jpg" class="img-responsive" alt=""><span class="zoom"><span><i class="fa fa-envelope"></i></span></span></a></div>
              <div class="heading">SHAWN C. LEOPARDI</div>
              <div class="designation">COO</div><br>
              <div class="team-social"><a href="#"><i class="fa fa-twitter"></i></a><a href="https://www.facebook.com/shawn.leopardi"><i class="fa fa-facebook"></i></a><a href="#"><i class="fa fa-google-plus"></i></a></div>
              <p class="smallline">&nbsp;</p>
              <div class="description">Expert in marketing & business operations, Shawn brings over 20 years of expertise to Bad Boy Branding. His processes have been proven to build mega-corporations from $20-80 million in annual revenue.</div>                  
           </div>
           <div class="team-contents animated" data-animation="flipInX" data-animation-delay="0">
              <div class="picture"><a href="mailto:anthony@badboybranding.com?subject=BAD BOY BRANDING INQUIRY" class="teamoverlayzoom"><img src="img/team/3.jpg" class="img-responsive" alt=""><span class="zoom"><span><i class="fa fa-envelope"></i></span></span></a></div>
              <div class="heading">ANTHONY MARABELLA</div>
              <div class="designation">VP SALES & MARKETING</div><br>
              <div class="team-social"><a href="#"><i class="fa fa-twitter"></i></a><a href="https://www.facebook.com/anthony.marabella"><i class="fa fa-facebook"></i></a><a href="#"><i class="fa fa-google-plus"></i></a></div>
              <p class="smallline">&nbsp;</p>
              <div class="description">Anthony leads a team of highly skilled business professionals while maintaining a great balance of customer care and dynamic sales techniques. He has implemented custom-tailored digital strategies that power the bullets at Bad Boy Branding.</div>                  
           </div>
           <div class="team-contents animated" data-animation="flipInX" data-animation-delay="0">
              <div class="picture"><a href="mailto:danielle@badboybranding.com?subject=BAD BOY BRANDING INQUIRY" class="teamoverlayzoom"><img src="img/team/4.jpg" class="img-responsive" alt=""><span class="zoom"><span><i class="fa fa-envelope"></i></span></span></a></div>
              <div class="heading">DANIELLE BYNUM</div>
              <div class="designation">VP BUSINESS DEVELOPMENT</div><br>
              <div class="team-social"><a href="#"><i class="fa fa-twitter"></i></a><a href="#"><i class="fa fa-facebook"></i></a><a href="#"><i class="fa fa-google-plus"></i></a></div>
              <p class="smallline">&nbsp;</p>
              <div class="description">Known in the industry as “The Business Development Shark”, Bad Boy Branding depends on Danielle’s efficient and highly seasoned business senses. Having worked directly for “The Shark” Daymond John, she has learned how to develop relationships worldwide with major corporations.  Additionally, Danielle empowers BBB with an evolutionary, hyper-speed licensing model.</div>                  
           </div>
           <div class="team-contents animated" data-animation="flipInX" data-animation-delay="0">
              <div class="picture"><a href="mailto:barry@badboybranding.com?subject=BAD BOY BRANDING INQUIRY" class="teamoverlayzoom"><img src="img/team/8.jpg" class="img-responsive" alt=""><span class="zoom"><span><i class="fa fa-envelope"></i></span></span></a></div>
              <div class="heading">BARRY SHRUM,ESQ.</div>
              <div class="designation">CORPORATE LEGAL</div><br>
              <div class="team-social"><a href="#"><i class="fa fa-twitter"></i></a><a href="#"><i class="fa fa-facebook"></i></a><a href="#"><i class="fa fa-google-plus"></i></a></div>
              <p class="smallline">&nbsp;</p>
              <div class="description">Barry Neil Shrum, Esquire, aka “The Bad Boy of Legal”, has been practicing entertainment & corporate law for over 16 years.  Having represented some of the biggest names in the industry, Barry safeguards BBB and the interests of its clients. As a result of doing business with Jay Leopardi for over a decade, they formed an acquisitions corporation to purchase brands that align well with BBB’s business model.</div>                  
           </div>
           <div class="team-contents animated" data-animation="flipInX" data-animation-delay="0">
              <div class="picture"><a href="mailto:hutson@badboybranding.com?subject=BAD BOY BRANDING INQUIRY" class="teamoverlayzoom"><img src="img/team/5.jpg" class="img-responsive" alt=""><span class="zoom"><span><i class="fa fa-envelope"></i></span></span></a></div>
              <div class="heading">HUTSON MILLER</div>
              <div class="designation">VP ENTERTAINMENT</div><br>
              <div class="team-social"><a href="#"><i class="fa fa-twitter"></i></a><a href="https://www.facebook.com/hutson.miller"><i class="fa fa-facebook"></i></a><a href="#"><i class="fa fa-google-plus"></i></a></div>
              <p class="smallline">&nbsp;</p>
              <div class="description">Former Atlantic Records/WEA executive & broker of the LA Lakers Owner Dr. Jerry Buss, Hutson works directly with top musicians, producers, professional athletes and celebrity entertainers. His list includes Brandy, Lil Kim, Pharrell Williams, Wyclef Jean, Jason Kidd, Desean Jackson, Tom Cruise & the list goes on. Working with Jay Leopardi for the past decade, developing a solid personal & business relationship, he now leads the entertainment division of Bad Boy Branding.</div>
           </div>
           <div class="team-contents animated" data-animation="flipInX" data-animation-delay="0">
              <div class="picture"><a href="mailto:pablo@badboybranding.com?subject=BAD BOY BRANDING INQUIRY" class="teamoverlayzoom"><img src="img/team/6.jpg" class="img-responsive" alt=""><span class="zoom"><span><i class="fa fa-envelope"></i></span></span></a></div>
              <div class="heading">PABLO FONSECA</div>
              <div class="designation">CREATIVE DIRECTOR</div><br>
              <div class="team-social"><a href="#"><i class="fa fa-twitter"></i></a><a href="https://www.facebook.com/pfon72"><i class="fa fa-facebook"></i></a><a href="#"><i class="fa fa-google-plus"></i></a></div>
              <p class="smallline">&nbsp;</p>
              <div class="description">Expert TV broadcasting & creative director, Pablo has worked for major corporations such as Univision, Telemundo, and the Zimmerman agency. Leading BBB’s creative team & managing a host of dynamic designers, he creates award-winning content that brings significant value. High profile clients, such as Ashley furniture, Nissan national, and Atlantis, have all received Pablo’s creative stamp.</div>
           </div>
           <div class="team-contents animated" data-animation="flipInX" data-animation-delay="0">
              <div class="picture"><a href="mailto:michael@badboybranding.com?subject=BAD BOY BRANDING INQUIRY" class="teamoverlayzoom"><img src="img/team/7.jpg" class="img-responsive" alt=""><span class="zoom"><span><i class="fa fa-envelope"></i></span></span></a></div>
              <div class="heading">MICHAEL SIEGLE</div>
              <div class="designation">IA DIRECTOR</div><br>
              <div class="team-social"><a href="https://twitter.com/JewHefner"><i class="fa fa-twitter"></i></a><a href="https://www.facebook.com/MichaelSiegle"><i class="fa fa-facebook"></i></a><a href="https://plus.google.com/u/0/101927035231881379587/posts"><i class="fa fa-google-plus"></i></a></div>
              <p class="smallline">&nbsp;</p>
              <div class="description">Well traveled & world-renowned information architect, Michael is a strategic and high level thinker autonomously managing BBB’s technical development teams.</div>
           </div>
        </div>
     </div>
  </section>
  <!-- /.TEAM --> 

/* ------------------------------------------ ------------------------------------------ 团队部分开始 */

#team {
    background: url(../img/textures/zwartevilt.png);
}
#team .line {
    border-bottom-width: 3px;
    border-bottom-style: solid;
    border-bottom-color: #373737;
    margin-bottom: 60px;
    width: 100px;
    margin-left: auto;
    margin-right: auto;
}
#team .team-contents {
    text-align: center;
    margin-bottom: 250px;
    margin-top: 25px;
}
#team .picture {
    padding-left: 30px;
    padding-right: 30px;
}
#team .picture img {
    width: 100%;
    height: auto;
    background: transparent;
    position: relative;
    margin-bottom: 25px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
}
#team .heading {
    font-size: 26px;
    text-transform: uppercase;
    font-weight: 400;
}
#team .designation {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 300;
    line-height: 3px;
}
#team .smallline {
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: #373737;
    margin-top: -20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    width: 100px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.team-contents .icon {
    width: 60px;
    height: 60px;
    border-radius: 60px;
    position: relative;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    color: #000;
    top: -60px;
    font-size: 26px;
    text-transform: uppercase;
    font-weight: 400;
    padding-top: 12px;
    padding-bottom: 12px;
    line-height: normal;
    margin-bottom: -60px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}
#team .description {
    margin-bottom: 20px;
    text-align: left;
    padding-right: 10px;
    height: 150px;
    color: gray;
}
#team .team-social a {

    text-align: center;
    margin-left: 6px;
    margin-right: 6px;
    color: #d0d0d0;
}
#team .team-social a i {
}
/* Team Overlayzoom Starts */
.teamoverlayzoom {
    position: relative;
    display: block;
    margin: 0;
    text-decoration: none;
}
.teamoverlayzoom span i {
    color: #000;
}
.teamoverlayzoom span.zoom {
    position: absolute;
    nowhitespace: afterproperty;
    nowhitespace: afterproperty;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    text-align: center;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease; /* Fallback for web browsers that doesn't support RGBa */
    background: rgb(256, 256, 256); /* RGBa with 0.6 opacity */
    background: rgba(256, 256, 256, 0.9);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}
.teamoverlayzoom span.zoom span {
    position: absolute;
    left: 0;
    top: 0;
    padding: 10px;
    width: 100%;
    height: 100%;
}
.teamoverlayzoom:hover span.zoom, .teamoverlayzoom:focus span.zoom {
    width: 100%;
    height: 100%;
    background: rgb(256, 256, 256); /* RGBa with 0.6 opacity */
    background: rgba(256, 256, 256, 0.4);
}

最佳答案

我目前没有太多时间,但我会让您使用特定于 css 浏览器的 css “hack”。我张贴这个只是为了以防你发现它有用:

因此,这不是最佳解决方案,但它应该可行。

/* IE7, FF */
html>body #team.container { 
    position: relative;
    right: 700px;
}

这只是针对那些特定的浏览器。这不是一个“好的”解决方案,因为浏览器特定的 css 是不好的做法。我明天可能会看看这个。祝你好运。

关于javascript - firefox 将 div 向右推,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23258705/

相关文章:

javascript - 将 javascript 对象包装到 .Net 用户控件

javascript - div 碰撞检测不起作用

javascript - 以特定间隔将图像插入 DOM

html - 仅在有子内容时更改内容

html - 在 Nokogiri 中选择变体

javascript - 如何根据用于确定要显示的按钮的值在单击之前不知道的条件动态显示按钮?

javascript - 如何扩展已在使用的 React 组件?

javascript - 在没有 JavaScript 的情况下保留 HTML 选择选项中的空格

php - 通过链接粘贴创建视频预览

javascript - 如何确保递归函数在返回之前不会再次被调用