douxueke5653 2015-02-05 02:47
浏览 62
已采纳

Chrome上奇怪的DIV redimension

I'm working on a new php website and something strange just started happening... I have a file for my top navbar so i can include it on every page and it's working great, except for one detail.. I was creating a register form and realize sometimes when i refresh the website on Chrome with F5 multiple times the top navbar where it says "Iniciar sesión o registrar" appears in 2 lines, if you keep refreshing eventually will switch from 2 lines view to 1 line view which doesn't make any sense since you're only refreshing and nothing else.. If you refresh with Shift+F5 80% of the time appears on 1 line, but still goes on 2 lines sometimes..

Another thing i realize is that it only happens when there's a FORM tag, so if you're for example on the main website it won't happen since there're no forms there.. You can keep refreshing with F5 or Shift+F5 the main website and it will always appear on 1 line (like it should)..

For me it doesn't make any sense since it's loading the same file, why would it show different almost everytime when you refresh?

This is the main website: Link offline

And this is where the error happens: Link offline

By the way, this only happens on Chrome.

Thank you

EDIT: I'm working on Chrome Versión 38.0.2125.111 dev-m (64-bit) with Windows 7 I know it's not only me because some friends got the error too

EDIT 2: I updated chrome to the lastest version and it's still happening

EDIT 3: I did file a bug.. Here's the ID: 455535

EDIT 4: Solved by changing float left on class login with display inline block, still don't know what was happening.. Links offline now

  • 写回答

1条回答 默认 最新

  • doubeng3216 2015-02-05 04:05
    关注

    I'm guessing this is a bug in Chrome. As suggested in the comments, I'd file a bug. I suspect it has something to do with the left float within the left float, but could be totally wrong.

    To get it working on your site, try replacing the .navbar .tools .login class in style-navbar.css this:

    .navbar .tools .login {
        display: inline-block;
        margin-right: 10px; 
    }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度