--- order: 2 title: zh-CN: 白底模式 en-US: white background mode --- ## zh-CN 默认 PageHeader 是透明底色的。在某些情况下,PageHeader 需要自己的背景颜色。 ## en-US The default PageHeader is a transparent background. In some cases, PageHeader needs its own background color. ```tsx import { Button, Descriptions, PageHeader } from 'antd'; import React from 'react'; const App: React.FC = () => (
window.history.back()} title="Title" subTitle="This is a subtitle" extra={[ , , , ]} > Lili Qu 421421 2017-01-10 2017-10-10 Gonghu Road, Xihu District, Hangzhou, Zhejiang, China
); export default App; ``` ```css .site-page-header-ghost-wrapper { padding: 24px; background-color: #f5f5f5; } ```