html - 如何让一些按钮在 DIV 中左对齐而一些按钮右对齐?

标签 html css

这是我尝试过的许多事情之一:

<div class="block-footer">
    <div>
        <button class="align-left">xx</button>
        <button class="align-right">yy</button>
    </div>
</div>

如何让按钮 xx 向左移动而 yy 向右移动?

最佳答案

试试这个

http://jsfiddle.net/ANC3H/1/

.align-left{

    float:left;
}
.align-right{

    float:right;
}

关于html - 如何让一些按钮在 DIV 中左对齐而一些按钮右对齐?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17938682/

相关文章:

html - 如何使用 bootstrap 对齐组中的复选框

html - 如何将文本加倍并保持文本在顶部对齐?

html - ie6中的页面长度问题

html - Bootstrap Nav 元素不会正确 float

html - 为什么我的字体不是 Trebuchet MS

html - 定时动画

html - 缩小浏览器后如何使 Bootstrap 导航栏稳定

java - 输出 Java map 并在 HTML 中混合

javascript - 如何创建可与背景渐变和重叠透明形状配合使用的嵌入曲线背景?

不同选择器组合中的 CSS 过渡