我有困难使我的页脚背景 colored颜色 跨越整个视区.希望有人能为我指明正确的方向!谢谢!
[![页脚背景色未覆盖整个视区](https://i.stack.imgur.com/EhWF4.png)](https://i.stack.imgur.com/EhWF4.png)
<footer>
<div id="top-footer">
Hong Kong
</div>
<div id="bottom-footer">
<a href="https://support.google.com/websearch/?p=ws_results_help&hl=en-HK&fg=1">Help</a>
<a href="https://policies.google.com/privacy?hl=en-HK&fg=1">Privacy</a>
<a href="https://policies.google.com/terms?hl=en-HK&fg=1">Terms</a>
</div>
</footer>
#top-footer, #bottom-footer {
margin: 0;
padding: 1rem 2rem;
height: 1rem;
font-size: medium;
}
#bottom-footer > a {
display: inline;
padding-right: 2rem;
margin: 0;
font-size: medium;
}
footer {
margin-top: 2rem;
background-color: grey;
width: 100%;
}