CSS shorthand for positioning

前端 未结 5 1350
小鲜肉
小鲜肉 2020-12-05 17:17

There are any shorthand for top right bottom left or for width and height ?

I have a lo

5条回答
  •  甜味超标
    2020-12-05 17:43

    No short-hand exists to combine all of these values. These are all different properties, unlike, for instance background, which has colors, images, positions and repeat instructions and as such can be coalesced into a short-hand form.

    If you really wanted this type of control, you could use something like SASS and create a mixin.

提交回复
热议问题