<html>
<head>
<style>
#wrap{
width: 800px;
background-color: black;
color: red;
}
#right{
float: right;
}
</style>
</head>
<body>
<div id="wrap">
<div id="right">
<h1>RIGHT</h1>
</div>
</div>
</body>
この例では、背景色ではなくテキストの色のみが継承されているためです。誰かが私に理由を説明できますか?