开发者

In webkit browsers, sometimes part of the background appears white

开发者 https://www.devze.com 2023-01-07 10:15 出处:网络
I have this issue that appears only when using a webkit browser. Sometimes, when I reload my browser, certain parts of the background become white, and if I resize the window, it renders the backgroun

I have this issue that appears only when using a webkit browser. Sometimes, when I reload my browser, certain parts of the background become white, and if I resize the window, it renders the background completely.

I was wond开发者_如何学编程ering, does anyone else have this issue? I don't think it's a markup issue, so I'm not going to attach any code. Just wondering if anyone has this issue, and if so, do you have any workarounds?

Picture of it happening: http://grab.by/5pys


It's pretty harmless, but it definitely is a frustrating issue. Not your fault though, sometimes when webkit renders the background, it just stops where the body element ends when the page loads from cache.

Perhaps try sending HTTP headers via PHP or other means by including this at the top of the page (before ANY output):

<?php
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
0

精彩评论

暂无评论...
验证码 换一张
取 消