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无码一区二区人妻 | 国产亚洲3p无码一区二区| 女同一区二区在线观看| 精品欧洲av无码一区二区| 亚洲国产美国国产综合一区二区| 亚洲国产综合无码一区二区二三区| 日本国产一区二区三区在线观看| 亚洲视频一区网站| 亚洲av午夜福利精品一区人妖| 狠狠做深爱婷婷综合一区| 一区二区三区免费在线视频| 国产AV天堂无码一区二区三区| 国产精品无码一区二区三区毛片| 日产精品久久久一区二区| 午夜福利av无码一区二区| 国产激情视频一区二区三区| 中文字幕aⅴ人妻一区二区| 国产精品福利区一区二区三区四区| 国产一区二区三区露脸| 日本一区二区三区在线视频| 国产一区二区三区精品久久呦| 性色av无码免费一区二区三区| 在线视频一区二区三区四区| 日韩一区二区三区不卡视频| 国产在线步兵一区二区三区| 高清一区二区在线观看| 精品国产一区二区三区在线观看 | 99精品久久精品一区二区| 岛国精品一区免费视频在线观看| 中文字幕一区二区三区视频在线| 国产午夜精品一区二区三区不卡| 中文字幕VA一区二区三区| 国产福利一区二区三区在线视频| 日本高清一区二区三区| 波多野结衣中文一区二区免费| 一区二区三区美女视频| 国产成人一区二区三区在线观看|