html中标题与文本对齐,html - 如何使“标题”文本在HTML表格中左右对齐 - 堆栈内存溢出...

我有一个页面可以在IE和Chrome中正确显示,但不能在Firefox中显示。 我想要在所有三种浏览器中显示的结果如下所示:

aHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS9pY0tTOC5wbmc=

...但是在Firefox中,它看起来像这样:

aHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS9TaVdwNS5wbmc=

到目前为止,我的代码是:

My title

body {

font-family: Arial, Helvetica, sans-serif;

margin-left:50px;

margin-right:50px;

}

.title{

float:left;

font-size:x-large;

}

.right-aligned{

float:right;

font-size:smaller;

text-align:right;

}

table,tr,td,th {

border:1px solid black;

}

tr.clsTable {

background-color:lightgray;

}

td.tableContainer {

padding:0px;

}

table {

border-collapse: collapse;

}

td.spacer {

border-right:hidden;

}

table.clsSubTable {

border-top:0px hidden;

border-right:0px hidden;

}

td,th {

padding:3px;

}

th {

background-color:burlywood

}

.no-result{

position:absolute;

top:50px;

}

My title
Right
aligned
Some headingSome other heading
Some dataSome other data

我在做什么错了,我该怎么做才能解决Firefox问题,而又不会“破坏” IE和Chrome中的当前行为(“右对齐”文本在浏览器中与表的右边缘保持关系)窗口是否已调整大小)?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值