开发者

css - does there exist a way to style width and height in the same line?

开发者 https://www.devze.com 2023-02-04 15:43 出处:网络
I was thinking about how to make my css code shorter and was wondering if there was a trick to defining both width and height in the same line? Kind of like how margin = margin-top,right,bottom,开发者

I was thinking about how to make my css code shorter and was wondering if there was a trick to defining both width and height in the same line? Kind of like how margin = margin-top,right,bottom,开发者_如何学JAVAleft. Is there something like dimension: width height;??


No, there isn't such a dimension property. (Now that you mention it, I think it'd be really nice to have one...)

Unless you mean

width: 30px; height: 30px; /* A single line! */
0

精彩评论

暂无评论...
验证码 换一张
取 消