如何将两行左侧的单元格更改为右侧的单元格?(HTML/表格…)
我喜欢下面的代码来创建一个表;然而,我想要分数方程式右边的“x=”部分。此时,“x=”位于分数方程式的左侧 如何更改代码,使“x=”位于右侧如何将两行左侧的单元格更改为右侧的单元格?(HTML/表格…),html,html-table,Html,Html Table,我喜欢下面的代码来创建一个表;然而,我想要分数方程式右边的“x=”部分。此时,“x=”位于分数方程式的左侧 如何更改代码,使“x=”位于右侧 <style> td.upper_line { border-top:solid 1px black; } table.fraction { text-align: center; vertical-align: middle; margin-top:0.5em; margin-bottom:0.5em; line-height: 2em; }
<style>
td.upper_line { border-top:solid 1px black; }
table.fraction { text-align: center; vertical-align: middle;
margin-top:0.5em; margin-bottom:0.5em; line-height: 2em; }
</style>
<table class="fraction" align="center" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="2" nowrap="nowrap"> <i>x</i> = </td>
<td nowrap="nowrap"> <i>x</i> <sup>2</sup> + <i>x</i> + 1</td>
</tr>
<tr>
<td class="upper_line">2 cos(<i>x</i>)</td>
</tr>
</table>
td.upper_线{边框顶部:实心1px黑色;}
table.fraction{文本对齐:中间;垂直对齐:中间;
页边距顶部:0.5em;页边距底部:0.5em;线条高度:2em;}
x=
x2+x+1
2 cos(x)
这就是你想要的吗?我把x=改成了an=x,这样方程看起来就对了
<table class="fraction" align="center" cellpadding="0" cellspacing="0">
<tr>
<td nowrap="nowrap">
<i>x</i><sup>2</sup> + <i>x</i> + 1
</td>
<td rowspan="2" nowrap="nowrap">
= <i>x</i>
</td>
</tr><tr>
<td class="upper_line">
2 cos(<i>x</i>)
</td>
</tr> </table>
x2+x+1
=x
2 cos(x)
这就是你想要的吗?我把x=改成了an=x,这样方程看起来就对了
<table class="fraction" align="center" cellpadding="0" cellspacing="0">
<tr>
<td nowrap="nowrap">
<i>x</i><sup>2</sup> + <i>x</i> + 1
</td>
<td rowspan="2" nowrap="nowrap">
= <i>x</i>
</td>
</tr><tr>
<td class="upper_line">
2 cos(<i>x</i>)
</td>
</tr> </table>
x2+x+1
=x
2 cos(x)
td.upper_线{边框顶部:实心1px黑色;}
table.fraction{文本对齐:中间;垂直对齐:中间;
页边距顶部:0.5em;页边距底部:0.5em;线条高度:2em;}
x2+x+1
=x
2 cos(x)
td.upper_线{边框顶部:实心1px黑色;}
table.fraction{文本对齐:中间;垂直对齐:中间;
页边距顶部:0.5em;页边距底部:0.5em;线条高度:2em;}
x2+x+1
=x
2 cos(x)
你的意思是:
<td rowspan="2" nowrap="nowrap"> <i>x</i> = </td>
<td nowrap="nowrap"> <i>x</i> <sup>2</sup> + <i>x</i> + 1</td>
x=
x2+x+1
到
x2+x+1
x=
你的意思是:
<td rowspan="2" nowrap="nowrap"> <i>x</i> = </td>
<td nowrap="nowrap"> <i>x</i> <sup>2</sup> + <i>x</i> + 1</td>
x=
x2+x+1
到
x2+x+1
x=
我不太明白你的问题。但我认为这是一个很好的方程解法。我不太明白你的问题。但我认为这是一个很好的方程解法。