如何保持文本框的大小始终是静态的 [英] how to keep the text box size always static

查看:89
本文介绍了如何保持文本框的大小始终是静态的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

默认CSS

  .angular-ui-tree-nodes .angular-ui-tree-nodes {
padding-左:0!重要;
}


My Plunker.

In this plunker there is a double plus button. If I press double plus button, The text box is moving right. But it should not be like that. It should be the right side size should be fixed like the first textbox. How can I achive that functionality.

<a class="btn btn-success btn-xs" data-nodrag ng-click="toggle(this)"><span class="glyphicon" ng-class="{'glyphicon-chevron-right': collapsed, 'glyphicon-chevron-down': !collapsed}"></span></a>
              <input type="text" ng-model="item.rowId">

Expecting output:-

解决方案

Add this CSS to the page to put the default CSS

.angular-ui-tree-nodes .angular-ui-tree-nodes {
    padding-left: 0!important;
}

这篇关于如何保持文本框的大小始终是静态的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆