css如何在一个工具条中定义向左(或向右)靠的button

来源:互联网 发布:js parsefloat 精度 编辑:程序博客网 时间:2024/06/05 20:40

1.在一个<header></header>中定义:

<div class="about"><a href="javascript:void(0)">关于我们<span></span></a></div>


2.然后定义css

 .header .about{right: auto; left: 0;}


这样便可得到向右靠的button