CSS问题,文本和复选框未对齐[关闭]

nuypyhwy  于 2024-01-09  发布在  其他
关注(0)|答案(1)|浏览(141)

**已关闭。**此问题需要debugging details。目前不接受回答。

编辑问题以包括desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将帮助其他人回答问题。
5天前关闭。
Improve this question
我有一个css风格的问题,文本框和文本不对齐。下面是我的代码。我需要帮助来解决这个问题。
谢谢

  1. <div>
  2. <input
  3. type="checkbox"
  4. [checked]="section?.data?.allowMe"
  5. class="pointer-events-none"
  6. />
  7. <label class="ml-2 view-text" for="allMe"
  8. >Allow LostOfData to be Seen</label
  9. >
  10. </div>

字符集


的数据

vwkv1x7d

vwkv1x7d1#

使用flexbox(https://css-tricks.com/snippets/css/a-guide-to-flexbox/):

  1. div {
  2. display: flex;
  3. align-items: center;
  4. }

字符集

相关问题