开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜