2

I'm sitting here pulling my hair out.. If you visit my site you are supposed to see something like this:

enter image description here

The thing is though that sometimes the images load and sometimes they do not. When I run everything from my local machine it works perfectly. But when i upload it to my server the images randomly stop loading sometimes.

I have noticed though that if you're using chrome and you press ctrl + shift + i and the console opens. And you then refresh the page with the console open it then seems to make everything load most of the time.

4

2 に答える 2

0

次のように、要素のサイズをインライン CSS スタイルとして指定することもできます。

<div class="myElement" style="width:100px; height:200px">Stuff</div>.

これらの寸法は要素に適用されるため、画像が読み込まれるのを待つ必要はありません。

さらに、要素にクラスを追加するignore-load-checkと、Freetile は要素の画像チェックを無視します。Freetile デモ ページでは、この機能のデモを提供しています。

于 2013-07-03T08:25:14.997 に答える