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! */
加载中,请稍侯......
精彩评论