[英]How to control the width and height of a svg element
与普通 CSS 一样,您需要使用 CSS 选择器来定位 SVG 选择器,您当前仅应用div
元素
export const SvgWrapper = styled.div`
svg {
width: ${(props) => props.width};
height: ${(props) => props.height };
padding-bottom: ${(props) => props.paddingBottom};
}
`;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.