添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
朝气蓬勃的包子  ·  DataStax Support·  2 周前    · 
旅行中的包子  ·  编译Java程序- ...·  1 月前    · 
重感情的脸盆  ·  Managing ...·  3 月前    · 

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account 渲染出来的效果看上去有点别扭,Checkbox勾选框偏下,而文字偏上。是否可以考虑两者都相对于外层的 class ant-checkbox-wrapper 的label做垂直居中。
本人采用tabel布局,line-height设为0,做了效果演示,个人感觉好看点。
修改前后对比:
不知道是否符合大众审美。

  • antd version:2.7.2
  • OS and its version:Windows 10
  • Browser and its version:Chrome 55.0.2883.87 m (64-bit)
  • What did you do? Please provide steps to re-produce your problem.

    I just use ant-init scaffold tool to create a demo and import Checkbox from antd.

    code :

    import React from 'react'
    import ReactDOM from 'react-dom'
    import './index.css'
    import { Checkbox } from 'antd'
    function App () {
      return (
        <div style={{ margin: 100 }}>
          <h1>AntDesign Demo</h1>
          <hr /><br />
          <Checkbox>选择 Checkbox</Checkbox>
    ReactDOM.render(<App />, document.getElementById('root'))
    

    What do you expected?

    Checkboxe and text are not vertically centered.

    What happen?

    Style is not as expected.

    result: