Bootstrap的role
生活随笔
收集整理的這篇文章主要介紹了
Bootstrap的role
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.role ?n.角色(任務);role="form"定義次元素為form功能角色;
2.下面有其他案例:
<div role="button" class="btn btn-default"></div> ,把div元素轉換為button按鈕功能使用; <div role="navigation"></div>,把div元素轉換為navigation導航功能使用; <div role="checkbox" aria-checked="checked"></div>,把div元素轉換為checkbox復選框功能使用; <a role="button" class="btn btn-default" href="#" >鏈接</a>,把a鏈接元素轉換為button按鈕功能使用。3.案例
<div role="button" class="btn btn-default">button</div> <a role="button" class="btn btn-default" href="#" >鏈接</a>總結
以上是生活随笔為你收集整理的Bootstrap的role的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Bootstrap的form-group
- 下一篇: 长期s挡开车对车有什么影响,其实99%的