【问题标题】:Want to keep button besides the text area想要在文本区域之外保留按钮
【发布时间】:2016-10-16 13:44:19
【问题描述】:

在 HTML 中,我想在文本区域之外对齐一个按钮,就像在信使中一样:

两者都在页脚中,但是当我更改屏幕尺寸时,会发生这种情况:

<input type="button" value="➢" onclick="CheckAndSubmit ()" style=" position:fixed; bottom:4px;right:100px; padding:15px;">
<textarea name="message" id="message" cols="40" rows="1" style="position:fixed; padding:15px; bottom:4px;"></textarea>

【问题讨论】:

  • 你应该提供代码和你的问题,否则没人会在这里猜到
  • @Beloo 好的,谢谢,我会记住这一点

标签: html textarea overlap right-align


【解决方案1】:

最简单的方法是使用 Bootstrap,您可以在此处阅读有关它的更多信息; http://getbootstrap.com/.

要使用引导程序,请将其放在您的 html -tag 中:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

在您的 HTML 代码中,您可以简单地编写:

<div class="container">
    <div class="col-md-10">
        // Input field goes here
    </div>
    <div class="col-md-2>
        // Button goes here
    </div>
</div>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-30
    • 1970-01-01
    • 2012-05-03
    • 2023-03-08
    • 1970-01-01
    相关资源
    最近更新 更多