1. <small id='Hjg27'></small><noframes id='Hjg27'>

        <legend id='Hjg27'><style id='Hjg27'><dir id='Hjg27'><q id='Hjg27'></q></dir></style></legend>
        <tfoot id='Hjg27'></tfoot>
      2. <i id='Hjg27'><tr id='Hjg27'><dt id='Hjg27'><q id='Hjg27'><span id='Hjg27'><b id='Hjg27'><form id='Hjg27'><ins id='Hjg27'></ins><ul id='Hjg27'></ul><sub id='Hjg27'></sub></form><legend id='Hjg27'></legend><bdo id='Hjg27'><pre id='Hjg27'><center id='Hjg27'></center></pre></bdo></b><th id='Hjg27'></th></span></q></dt></tr></i><div id='Hjg27'><tfoot id='Hjg27'></tfoot><dl id='Hjg27'><fieldset id='Hjg27'></fieldset></dl></div>
          <bdo id='Hjg27'></bdo><ul id='Hjg27'></ul>

        如何在两次潜水之间将按钮放在顶部?

        how to put a button on top between two dives?(如何在两次潜水之间将按钮放在顶部?)

        1. <legend id='LfdC1'><style id='LfdC1'><dir id='LfdC1'><q id='LfdC1'></q></dir></style></legend>
              <tbody id='LfdC1'></tbody>
            <i id='LfdC1'><tr id='LfdC1'><dt id='LfdC1'><q id='LfdC1'><span id='LfdC1'><b id='LfdC1'><form id='LfdC1'><ins id='LfdC1'></ins><ul id='LfdC1'></ul><sub id='LfdC1'></sub></form><legend id='LfdC1'></legend><bdo id='LfdC1'><pre id='LfdC1'><center id='LfdC1'></center></pre></bdo></b><th id='LfdC1'></th></span></q></dt></tr></i><div id='LfdC1'><tfoot id='LfdC1'></tfoot><dl id='LfdC1'><fieldset id='LfdC1'></fieldset></dl></div>
          • <small id='LfdC1'></small><noframes id='LfdC1'>

              <bdo id='LfdC1'></bdo><ul id='LfdC1'></ul>
              <tfoot id='LfdC1'></tfoot>

                  本文介绍了如何在两次潜水之间将按钮放在顶部?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想用 css 做一个这样的设计,但我不知道如何把这个按钮放在两个 div 之间,谁能帮帮我?

                  I want to make a design like this using css, but i don't know how to put this button on top between two divs, can anyone help me?

                  <div></div>
                  button
                  <div></div>
                  

                  推荐答案

                  制作按钮样式position: absolute;并定义righttopbottom 属性.

                  Make the button style position: absolute; and define the right and top or bottom properties.

                  如果您希望按钮在滚动时固定,请设置 position: fixed;

                  If you want the button to be fixed while scrolling, set position: fixed;

                  #up{
                  background-color:#B7005D;
                  height:10vh;
                  width:100%;
                  }
                  #middle{
                  background-color:#E0E1E0;
                  height:40vh;
                  width:100%;
                  }
                  #floating-button{
                    width: 50px;
                    height: 50px;
                    border-radius: 50%;
                    background: #B7005D;
                    position: fixed;
                    top: calc(50% - 25px);
                    right: 30px;
                    cursor: pointer;
                    box-shadow: 0px 2px 5px #666;
                  }

                  <div id="up"></div>
                  <div id="middle"></div>
                  <div id="floating-button"></div>

                  这篇关于如何在两次潜水之间将按钮放在顶部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Embed YouTube video - Refused to display in a frame because it set #39;X-Frame-Options#39; to #39;SAMEORIGIN#39;(嵌入 YouTube 视频 - 拒绝显示在框架中,因为它将“X-Frame-Options设置为“SAMEORIGIN)
                  Stop embedded youtube iframe?(停止嵌入 youtube iframe?)
                  YouTube iframe API: how do I control an iframe player that#39;s already in the HTML?(YouTube iframe API:如何控制 HTML 中已有的 iframe 播放器?)
                  Switch/toggle div (jQuery)(切换/切换 div (jQuery))
                  Apply jquery (mobile) css classes programatically after rendering has occurred(呈现后以编程方式应用 jquery (mobile) css 类)
                  How to avoid name clashes in JavaScript widgets(如何避免 JavaScript 小部件中的名称冲突)
                    <legend id='KuhXj'><style id='KuhXj'><dir id='KuhXj'><q id='KuhXj'></q></dir></style></legend>
                    <i id='KuhXj'><tr id='KuhXj'><dt id='KuhXj'><q id='KuhXj'><span id='KuhXj'><b id='KuhXj'><form id='KuhXj'><ins id='KuhXj'></ins><ul id='KuhXj'></ul><sub id='KuhXj'></sub></form><legend id='KuhXj'></legend><bdo id='KuhXj'><pre id='KuhXj'><center id='KuhXj'></center></pre></bdo></b><th id='KuhXj'></th></span></q></dt></tr></i><div id='KuhXj'><tfoot id='KuhXj'></tfoot><dl id='KuhXj'><fieldset id='KuhXj'></fieldset></dl></div>
                    • <bdo id='KuhXj'></bdo><ul id='KuhXj'></ul>

                        <tbody id='KuhXj'></tbody>

                      1. <small id='KuhXj'></small><noframes id='KuhXj'>

                        <tfoot id='KuhXj'></tfoot>