aspect-ratio
2022.10.13
aspect-ratio
#css
use client /components/post/reExport ,
height: ,
background:
}}>
div1
</div>
)
}
function Square2() {
return (
<div css={{
width: ,
aspectRatio: ,
background:
}}>
div1
</div>
)
}
const postObj = {
title: ,
date: ,
tags: [ ],
imgUrl: ,
desc: ,
body: (
<>
<H>Aspect-ratio</H>
<p>We can assign width and height to the element.</p>
<Code block jsx>{ ,
height: ,
background:
}}>
div1
</div>
)
}
function Square2() {
return (
<div css={{
width: ,
aspectRatio: ,
background:
}}>
div1
</div>
)
}