【问题标题】:z-index property marked as invalid because of bootstrap由于引导程序,z-index 属性标记为无效
【发布时间】:2016-12-06 22:26:58
【问题描述】:

当我的应用程序中未使用引导程序时,我有以下标记和 CSS 可以正常工作。当我将引导程序与我的“ddlSelect”类的应用程序 z-index 属性链接时,将不会在超链接上应用。

.divcols {
  color: #333 !important;
  display: inline-block !important;
  width: 100%;
  padding: 2px;
}
.ddlSelect {
  background: url(../Images/Classic/Icons/dropdwn-img.png) no-repeat 0 0;
  width: 15px;
  height: 16px;
  margin-top: 3px;
  position: relative;
  z-index: 1100px !important;
  left: -7px;
  right: -17px;
  top: 3px;
  margin: 0 -2px 0 -15px;
}
<div class="divcols">
  <label for="txtDocPersonID">Doctor</label>
  <input class="ui-autocomplete-input valid" id="txtDocPersonID" name="txtDocPersonID" type="text" value="" autocomplete="off">
  <a tabindex="-1" title="Show All Items" class="ddlSelect"></a>
</div>

【问题讨论】:

  • 请澄清您的具体问题或添加其他详细信息以准确突出您的需要。正如目前所写的那样,很难准确地说出你在问什么。

标签: html css twitter-bootstrap


【解决方案1】:

z-index 没有以像素为单位定义。尝试将其更改为:

z-index: 1100;

【讨论】:

    猜你喜欢
    • 2019-01-21
    • 1970-01-01
    • 2013-05-07
    • 1970-01-01
    • 2013-05-27
    • 1970-01-01
    • 1970-01-01
    • 2011-03-31
    • 1970-01-01
    相关资源
    最近更新 更多