【发布时间】:2012-01-13 15:59:10
【问题描述】:
<html>
<head>
<style type="text/css">
div
{
background-color:#ccc;
}
</style>
</head>
<body>
<div>
<div style="float: left;">This is a text inside a div element.</div>
<div style="float: right;">We are still in the div element.</div>
</div>
</body>
</html>
为什么这两个 div 之间没有显示背景颜色?
【问题讨论】:
标签: html background-color