Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.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/表格…)_Html_Html Table - Fatal编程技术网

如何将两行左侧的单元格更改为右侧的单元格?(HTML/表格…)

如何将两行左侧的单元格更改为右侧的单元格?(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; }

我喜欢下面的代码来创建一个表;然而,我想要分数方程式右边的“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>

<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=

我不太明白你的问题。但我认为这是一个很好的方程解法。我不太明白你的问题。但我认为这是一个很好的方程解法。