gpt4 book ai didi

html - CSS强制内联输入字段

转载 作者:太空宇宙 更新时间:2023-11-03 22:55:47 26 4
gpt4 key购买 nike

我有以下代码,但无法访问要编辑的 HTML。

<form>
<div class="LoginDiv">
<input type="text" name="user_login" tabindex="1" placeholder="Email"/>
</div>
<div class="LoginDiv">
<input type="password" name="user_password" tabindex="2" placeholder="Password" />
</div>
<button type="submit">LOGIN</button>
</form>

这按照图像显示。

enter image description here

我能够访问 CSS,并且我希望能够强制输入字段使其内联。

这可能吗?

谢谢,

约翰

最佳答案

我想这就是你需要的

.LoginDiv {
display: inline-block;
}

https://jsfiddle.net/21o0uL52/

关于html - CSS强制内联输入字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38498745/

26 4 0
文章推荐: c# - 从代码填充 UWP 组合框
文章推荐: node.js - Mongoose 中的错误处理
文章推荐: c# - 监听 XAML 中的全局变量变化
文章推荐: Node.js - 类型错误 : Object # has no method