antd 框架的input問題

  1.  在寫登陸頁面的,當不輸入用戶名時,會提示請輸入用戶名,當不輸入密碼時,會提示請輸入密碼3d

  

  2.  可是,會有一些問題,就是提示的進入與隱藏會影響總體的高度,因此,咱們須要修改默認的margin-bottom使之爲0orm

       .ant-form-item{
           margin-bottom: 0px;
       }
      .ant-form-item-with-help{
         margin-bottom: 0px;
      }

 

 

相關文章
相關標籤/搜索