Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些输入字段,我想将它们设置为最初看起来像标签的样式,然后通过 angular.js 对它们应用样式,以便在按下按钮后可以对其进行编辑。我正在使用引导程序,是否有一个内置类可以打开和关闭这些输入?
<style type="text/css">.asd { background: rgba(0, 0, 0, 0); border: none; } </style>
<input type="text" class="asd" value="Label look like" disabled/>
不像切换类那么容易,但您可以将 a<p>与.form-control-static类一起用作标签和普通输入字段。然后切换可见性以进行编辑。
<p>
.form-control-static