HTML Web ページに を追加する必要があるのは、追加したdoctype
場合にのみ IE が正しくフォーマットするからです。しかし、追加すると、ページ上の一部の画像が読み込まれません。画像は CSS の background プロパティで埋め込まれ、 で画面に表示されますdiv
。すべての一般的なブラウザで画像をロードするわけではありません。
何が問題なのですか?私は本当にdoctype
アップが必要です。
CSS:
.blue {
position: absolute;
background: url(blue.png) no-repeat center center;
top: 163;
width: 228;
height: 434;
}
.green {
position: absolute;
background: url(green.png) no-repeat center center;
top: 120;
width: 266;
height: 209;
}
.orange {
position: absolute;
background: url(orange.png) no-repeat center center;
top: 183;
width: 165;
height: 291;
}
HTML:
<div class="blue"> </div>
<div class="green"> </div>
<div class="orange"> </div>
上部のDoctype:
<!DOCTYPE html>