CSS的值inline和inline-block值之间究竟有什么区别display?
请考虑以下代码:
#wrapper {
width: 500px;
border: 1px solid black;
}
#first {
width: 300px;
border: 1px solid red;
}
#second {
border: 1px solid green;
}Run Code Online (Sandbox Code Playgroud)
<div id="wrapper">
<div id="first">Stack Overflow is for professional and enthusiast programmers, people who write code because they love it.</div>
<div id="second">When you post a new question, other users will almost immediately see it and try to provide good answers. This often happens in a matter of minutes, so be sure to check …Run Code Online (Sandbox Code Playgroud)有人可以帮我理解这个bug吗?Firefox的工作正常,但Internet Explorer 7却没有.似乎不明白了display: inline-block;.
HTML:
<div class="frame-header">
<h2>...</h2>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS:
.frame-header {
height:25px;
display:inline-block;
}
Run Code Online (Sandbox Code Playgroud)