Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧐[问题 | question]引入iframe页面,如何消除ant-pro-layout的边距 #11324

Open
huang429 opened this issue Aug 30, 2024 · 0 comments

Comments

@huang429
Copy link

🧐 问题描述 | Problem description

页面存在padding-block和padding-inline,经开发者工具查看,是ant-pro-layout的样式,如何在页面中消除该样式?

💻 示例代码 | Sample code

export default () => {

return (

    <iframe src="https://www.baidu.com" allowFullScreen width='1000px' height='450px'
    frameBorder="0" style={{paddingBlock:'-32px'}}></iframe>
);

};

浏览器 | browser:google

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant