WeChat Mini Programs's < text > cannot set margin-left/right, but can set padding-left/right.

css Book: one of the differences between inline elements and block-level elements is that for inline elements, margin is valid only by margin-left and margin-right, and padding is valid only by padding-left and padding-right

but: WeChat Mini Programs"s < text > cannot set margin-left/right, but can set padding-left/right
Mar.29,2021

set display by yourself. I generally initialize it all to flex


the answer of the same month shadow. If you want to change the layout of something, such as margin,padding, it is generally easier to change display to block/inline-block/flex,.


the answer of the same moon shadow is to convert text into a block element


:text margin-left/right padding-left/right 

:
<text style='background-color: yellow;margin-left:100px;padding-right: 50px;'>111</text>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e491e8-44496.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e491e8-44496.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?