Interactions

      Utility classes that change how users interact with contents of a website.

      On this page

      Text selection

      Change the way in which the content is selected when the user interacts with it.

      This paragraph will be entirely selected when clicked by the user.

      This paragraph has default select behavior.

      This paragraph will not be selectable when clicked by the user.

      <p class="user-select-all">This paragraph will be entirely selected when clicked by the user.</p>
      <p class="user-select-auto">This paragraph has default select behavior.</p>
      <p class="user-select-none">This paragraph will not be selectable when clicked by the user.</p>

      Pointer events

      Bootstrap provides .pe-none and .pe-auto classes to prevent or add element interactions.

      This link can not be clicked.

      This link can be clicked (this is default behavior).

      This link can not be clicked because the pointer-events property is inherited from its parent. However, this link has a pe-auto class and can be clicked.

      <p><a href="#" class="pe-none" tabindex="-1" aria-disabled="true">This link</a> can not be clicked.</p>
      <p><a href="#" class="pe-auto">This link</a> can be clicked (this is default behavior).</p>
      <p class="pe-none"><a href="#" tabindex="-1" aria-disabled="true">This link</a> can not be clicked because the <code>pointer-events</code> property is inherited from its parent. However, <a href="#" class="pe-auto">this link</a> has a <code>pe-auto</code> class and can be clicked.</p>
      The .pe-none class (and the pointer-events CSS property it sets) only prevents interactions with a pointer (mouse, stylus, touch). Links and controls with .pe-none are, by default, still focusable and actionable for keyboard users. To ensure that they are completely neutralized even for keyboard users, you may need to add further attributes such as tabindex="-1" (to prevent them from receiving keyboard focus) and aria-disabled="true" (to convey the fact they are effectively disabled to assistive technologies), and possibly use JavaScript to completely prevent them from being actionable. For form controls, consider using the disabled HTML attribute instead.

      Sass

      Utilities API

      Interaction utilities are declared in our utilities API in scss/_utilities.scss. Learn how to use the utilities API.

          "user-select": (
            property: user-select,
            values: all auto none
          ),
          "pointer-events": (
            property: pointer-events,
            class: pe,
            values: none auto,
          ),
          
      返回頂部
      主站蜘蛛池模板: 日本一区二区三区在线看| 国产精品福利区一区二区三区四区| 精品欧洲av无码一区二区三区| 一区二区三区免费高清视频| 国产经典一区二区三区蜜芽| 国产在线一区二区在线视频| 无码精品前田一区二区| 国产精品分类视频分类一区| 亚洲AV乱码一区二区三区林ゆな| 中文字幕在线无码一区| 日韩精品一区二三区中文 | 一区二区三区精品高清视频免费在线播放| 无码国产伦一区二区三区视频| 国产亚洲情侣一区二区无码AV | 老熟女五十路乱子交尾中出一区| 国产精品久久无码一区二区三区网| 无码人妻精品一区二区三区在线| 亚洲午夜日韩高清一区| 最新欧美精品一区二区三区| 美女毛片一区二区三区四区| 久久精品午夜一区二区福利| 中文字幕久久久久一区| 国产伦精品一区二区三区视频小说| 亚洲av无码片区一区二区三区| 久久国产精品亚洲一区二区| 久久久久无码国产精品一区 | 国产在线无码一区二区三区视频| 一区二区免费电影| 精品91一区二区三区| 一区二区三区免费精品视频| 看电影来5566一区.二区| 国产成人精品一区二区三区免费 | 日本国产一区二区三区在线观看 | 亚洲日韩精品一区二区三区| 久久国产精品一区二区| 国产一区二区四区在线观看 | 亚洲AV成人一区二区三区观看| 中文字幕av一区| 色精品一区二区三区| 国产色精品vr一区区三区| 亚洲色婷婷一区二区三区|