Web/02-CSS基础/16-浏览器的兼容性问题.md
2021-07-29 11:08:52 +08:00

36 lines
553 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.

---
title: 16-浏览器的兼容性问题
publish: false
---
<ArticleTopAd></ArticleTopAd>
我们在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>
```