Web/02-CSS基础/16-浏览器的兼容性问题.md
qianguyihao 6447c8eee9 update
2020-01-13 10:54:14 +08:00

30 lines
465 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

我们在div里放一个img发现
在html和html5中div的长宽是不同的后者的高度要超过几个像素。
比如说下面这个是html的。
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
*{
margin: 0px;
padding: 0px;
}
</style>
</head>
<body>
<div>
<img src="/Users/smyhvae/Dropbox/img/20170813_1143.jpg" alt="">
</div>
</body>
</html>
```