并非我的所有文字都显示在我的输入字段中

时间:2018-11-01 13:58:39

标签: c# asp.net asp.net-mvc-4 model-view-controller

我在网站上提交了一些输入,但是标签没有完全显示。当我检查页面时,左侧的标签有更多空间。即使在我的代码中也没有显示蓝色文本。我不确定为什么我的所有文字都没有显示?下面,我将提供代码和所见内容。

      <div class="form-group">
        <div class="col-md-2">
            <div class="row">
                @Html.LabelFor(model => model.ManagerComment, htmlAttributes: new { @class = "control-label" })
            </div>
            <div class="row right">
                <input value="Meeting Scheduled" class="btn btn-link  nopadding fontsemilabel" onclick="location.href='@Url.Action("MeetingSch", "Strategy", new {id = Model.StrategyId})'" />
            </div>
            <div class="row right">
                <input value="Need to schedule visit" class="btn btn-link nopadding fontsemilabel" onclick="location.href='@Url.Action("SchVisit", "Strategy", new {id = Model.StrategyId})'" />
            </div>
            <div class="row right">
                <input value="Need to schedule eMeeting" class="btn btn-link nopadding fontsemilabel" onclick="location.href='@Url.Action("ScheMeet", "Strategy", new {id = Model.StrategyId})'" />
            </div>
            <div class="row right">
                <input value="No action at this time, followup planned" class="btn btn-link nopadding fontsemilabel" onclick="location.href='@Url.Action("NoAct", "Strategy", new {id = Model.StrategyId})'" />
            </div>
            <div class="row right">
                <input value="Samples Requested" class="btn btn-link nopadding fontsemilabel" onclick="location.href='@Url.Action("SampReq", "Strategy", new {id = Model.StrategyId})'" />
            </div>
            <div class="row right">
                <input value="Evaluating Samples" class="btn btn-link nopadding fontsemilabel" onclick="location.href='@Url.Action("EvalSamp", "Strategy", new {id = Model.StrategyId})'" />
            </div>
            <div class="row right">
                <input value="Need to Confirm CEM location" class="btn btn-link nopadding fontsemilabel" onclick="location.href='@Url.Action("ConfirmCEM", "Strategy", new {id = Model.StrategyId})'" />
            </div>
        </div>
        <div class="col-lg-9">
            @Html.TextAreaFor(m => m.ManagerComment, 100, 50, new { id = "questionInput", maxlength = 1000, style = "width: 100%; max-width: 100%" })
            <div id="charsLeft"></div>
            <div class="col-lg-3">
                <p style="white-space: pre-line">
                    <input value="New Update" class="btn btn-default" onclick="location.href='@Url.Action("Update", "Strategy", new {id = Model.StrategyId})'" />
                </p>
            </div>
        </div>
    </div>

enter image description here

下面的CSS:

.right {
    text-align: right;
}

textarea {
    width: 1000px;
    height: 200px;
}

.fontsemilabel {
    font-size: 10px;
    text-align: right;
}

.nopadding {
    padding: 0 !important;
}

1 个答案:

答案 0 :(得分:0)

如果您不了解CSS,那么

仅将具有相应数据的表应用于

<table>
<tr>
<td>
 <input value="Meeting Scheduled" class="btn btn-link  nopadding fontsemilabel" onclick="location.href='@Url.Action("MeetingSch", "Strategy", new {id = Model.StrategyId})'" />
</td>
<td>
<input value="Need to Confirm CEM location" class="btn btn-link nopadding fontsemilabel" onclick="location.href='@Url.Action("ConfirmCEM", "Strategy", new {id = Model.StrategyId})'" />
</td>
</tr>
</table> 

喜欢...