Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何使用flex模型移动右侧的按钮?_Html_Css - Fatal编程技术网

Html 如何使用flex模型移动右侧的按钮?

Html 如何使用flex模型移动右侧的按钮?,html,css,Html,Css,我想移动右边末端的按钮。这是我的密码 您可以将父项设置为display:flex;弹性方向:行,以h1为弹性基础:100%; 返回 拒绝理由 我想他想要的是右边的h1。也许对齐内容:flex end有帮助吗?根据他的问题,我理解他希望按钮对齐是的,我读得更好,他想要按钮,是的,对不起:你的答案很好,我投了更高的票;使用左边距:自动切换到按钮父级。 <div style="display: flex;justify-content: center;"> <h

我想移动右边末端的按钮。这是我的密码

您可以将父项设置为display:flex;弹性方向:行,以h1为弹性基础:100%; 返回 拒绝理由
我想他想要的是右边的h1。也许对齐内容:flex end有帮助吗?根据他的问题,我理解他希望按钮对齐是的,我读得更好,他想要按钮,是的,对不起:你的答案很好,我投了更高的票;使用左边距:自动切换到按钮父级。
    <div style="display: flex;justify-content: center;">
       <h3 style="font-weight: bold;">Back</h3>
        <div style="display: flex">
         <button class="btn btn-primary clearfix" ng-click="onRejectedReason()">Rejected Reason</button>
        </div>
   </div>