文本溢出绝对位置

时间:2018-05-01 06:16:56

标签: css twitter-bootstrap twitter-bootstrap-3 bootstrapvalidator

请帮助解决此问题: enter image description here

$sql = "SQL query here"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row = mysql_fetch_array($result,MYSQL_ASSOC)) { $client_name = $row['client_name']; //-- step 1 : count how many 'client_name' in $result //-- step 2 : IF more than 5, do something... } } 位于help-block内。我使用bootstrap + form validator插件

form-group

2 个答案:

答案 0 :(得分:0)

试试这个:

.form-group.has-error .help-block {
   overflow:hidden;
}

答案 1 :(得分:0)

 .form-group.has-error .help-block {
    position: absolute;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}