Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/14.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
Javascript html中的“我的表格”列会自动增加_Javascript_Html - Fatal编程技术网

Javascript html中的“我的表格”列会自动增加

Javascript html中的“我的表格”列会自动增加,javascript,html,Javascript,Html,这是我的密码 <table id="addComments" style="width:430px; table-layout:fixed; display:none; padding-right:3px; padding-left:3px;"> <tr> <td colspan="3"> <textarea id="textArea" rows="15

这是我的密码

 <table id="addComments" style="width:430px; table-layout:fixed; display:none; padding-right:3px; padding-left:3px;">

                <tr>
                <td colspan="3">
                <textarea  id="textArea" rows="15" cols="0" style="width:430px; overflow:hidden;"></textarea>
                </td>
                </tr>

                <tr> 

                <td>
                <div id="noComments" style="color:red; display:none;">Please write your comments.</div>
                </td>

                    <td>   
                here is some image whose display is none
                    </td>

                <td> 
                <input id="commentBtn" type="button"  onclick="getTxt()" value="Add Comments"  class="button default bt-large"/>
                </td>

                </tr>

              </table>

请写下你的评论。
这是一些显示为“无”的图像

其中第1行为colspan,第2行有三列,其中两列显示none当其中一个隐藏列可见时,第一行自动扩展请选择任何解决方案使用
可见性:隐藏而不是
显示:无这将为内容保留空间,但不可见。

使用
可见性:隐藏而不是
显示:无这将为内容保留空间,但不可见。

您已经有一个div来显示消息。去掉3列,只使用一列。显示/隐藏列在浏览器中不起作用。对于图像和按钮,只需提及display:inline block。

您已经有了一个div来显示消息。去掉3列,只使用一列。显示/隐藏列在浏览器中不起作用。对于图像和按钮,只需提及显示:内联块。

您能给我们演示一下吗?谢谢你能给我们演示一下吗?谢谢