html - 如何显示两个内联?
问题描述
<div class="wrap-input100 validate-input mr-3">
<input type="text" name="title" class="input100 text1" autocomplete="off" required>
<span class="focus-input100" data-placeholder="Title"></span>
<span class="count1 text-secondary"></span>
</div>
我需要显示两个span
内联。display-inline: flex;
似乎行不通。
我有一个CSS
从网站下载的,用于风格化我的输入,CSS
它真的很大,所以我不能放在这里剪断。
链接到 codepen:https ://codepen.io/user236945896/pen/yRBLPM
解决方案
我希望这是你想要的,因为你的问题不是很清楚。
<div class="wrap-input100 validate-input mr-3">
<input type="text" name="title" style="display:inline-block;width:auto;" class="input100 text1" autocomplete="off" required>
<span class="focus-input100" style="width:auto" data-placeholder="Title"></span>
<span class="count1 text-secondary"></span>
</div>
链接到 codepen:https ://codepen.io/anon/pen/NOKWmb
推荐阅读
- javascript - if 语句不适用于文本颜色
- spring - JSP
- recursion - 限制thrift中的递归深度
- python - Sklearn Labelencoder 在编码新数据帧时保留编码值
- java - 如何在西班牙语中使用斯坦福 NLP 词性标注?
- php - 多维数组转换为简单数组 PHP
- java - replaceAll() 方法不适用于用户输入字符串
- typescript - 在括号表示法中使用显式类型断言时,如何使用 noImplicitAny:false 在 TypeScript 中强制错误?
- git - git commit hash 的 Perforce 等价物是什么
- pandas - 在数据框1的第1列和数据框2的第2列的基础上填充数据框1的第3列