Colspan for textarea不工作

时间:2018-04-09 22:50:49

标签: html asp.net-mvc

我正在研究ASP.NET MVC项目,colspan for textarea没有工作它忽略了colspan =" 2" attrbuite

CSS

  table {
        border-collapse: separate;
        border-spacing: 0;
    }
    td {
        position: relative;
        padding: 15px;
    }
    td {
        left: 10px;
    }
        td:first-child {
            left: 0px;
        }
        td:nth-child(3) {
            left: 20px;
        }

查看

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div id="wizard">


    <div >
        <div>

            <table>
                <tr>
                    <td>
                        <div>
                            @Html.LabelFor(model => model.project.Title, "Project title", new { @style = "display:inline-block" })
                            @Html.EditorFor(model => model.project.Title})
                            @Html.ValidationMessageFor(model => model.project.Title)
                        </div>
                    </td>
                    <td>
                        <div>
                            @Html.LabelFor(model => model.project.Year, "Year",new { @style = "display:inline-block" })
                            @Html.EditorFor(model => model.project.Year)
                            @Html.ValidationMessageFor(model => model.project.Year)

                        </div>
                    </td>
                </tr>
                <tr>
                    <td  colspan="2">
                        <label>Abstract</label><span style="color:red">    *</span>
                        <textarea  class="form-control" rows="6" name="SPAbstract" required>@ViewBag.abs</textarea>

                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>

页面的屏幕截图

https://www.dropbox.com/s/f5pu9e6p5q933td/temp.png?dl=0

注意:抱歉,我已经包含了这个链接,因为我没有达到10分,所以我无法插入图片

1 个答案:

答案 0 :(得分:0)

我在Site.css中找到了这个,当我删除它正常工作

input, select, textarea { max-width: 280px; }