如何使用 bootstrap 将按钮放置在右上角?

原文:https://www . geesforgeks . org/how-to-place-button-in-右上角-use-bootstrap/

要将按钮放在右上角,有几种方法可以做到这一点。

  1. The easiest way to do this, Set “pull-right” in button class. Example:

    ```html <!DOCTYPE html>

               place button in top right corner   

             

      

      

        
            

          GeeksforGeek                Button Text                

        

    ```

    输出:

  2. The button group is used for more than one button like in this example. The button group is optional if you’re only using a single button. Example:

    ```html <!DOCTYPE html>

                 place button in top right corner     

             

        

        

                                      Other Content              

    ```