aria展开不适用于折叠功能

时间:2019-07-27 04:59:49

标签: twitter-bootstrap bootstrap-4

我想将元素显示为默认值并编写aria-expanded =“ true”,但它不起作用。 默认情况下它会折叠...

我尝试清除浏览器内存。

      <nav class="navbar navbar-dark bg-primary">
        <form class="form-inline">
          <div class = "slds-scope">
            <button class="slds-button slds-button_neutral" type="button" data-toggle="modal" data-target="#exampleModal">New Contact</button>
            <button class="slds-button slds-button_neutral" type="button" data-toggle="collapse" data-target="#collapseExample" aria-expanded="true" aria-controls="collapseExample">Collapse</button>
          </div>
        </form>
      </nav>
      <div class="collapse" id="collapseExample">
        <div class="slds-scope" >
          <div class="slds-form-element">
            <label class="slds-form-element__label" for="text-input-id-1">
              <abbr class="slds-required"> </abbr>Last Name</label>
            <div class="slds-form-element__control">
              <input type="text" id="text-input-id-1" class="slds-input" id="InputLastName"/>
            </div>
          </div>
          <div class="slds-form-element">
            <label class="slds-form-element__label" for="text-input-id-1">
              <abbr class="slds-required"> </abbr>First Name</label>
            <div class="slds-form-element__control">
              <input type="text" id="text-input-id-1" class="slds-input" id="InputFirstName"/>
            </div>
          </div>
          <div class="slds-form-element">
            <label class="slds-form-element__label" for="text-input-id-1">
              <abbr class="slds-required"> </abbr>Department</label>
            <div class="slds-form-element__control">
              <input type="text" id="text-input-id-1" class="slds-input" id="InputDepartment"/>
            </div>
          </div>
          <div class="slds-form-element">
            <label class="slds-form-element__label" for="text-input-id-1">
              <abbr class="slds-required"> </abbr>Phone</label>
            <div class="slds-form-element__control">
              <input type="text" id="text-input-id-1" class="slds-input" id="InputPhone"/>
            </div>
          </div>
          <br/>
          <button class="slds-button slds-button_neutral" onClick={this.Reset}>Reset</button>
          <button class="slds-button slds-button_brand" onClick={this.Search}>Search</button>


          <br/>
        </div>
      </div>

希望将div元素显示为默认

0 个答案:

没有答案