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

  2. <tfoot id='XKWmy'></tfoot>

    1. <legend id='XKWmy'><style id='XKWmy'><dir id='XKWmy'><q id='XKWmy'></q></dir></style></legend>

      圆形按钮 css

      时间:2023-09-08

    2. <small id='shv4W'></small><noframes id='shv4W'>

        <tfoot id='shv4W'></tfoot>

            <tbody id='shv4W'></tbody>
            <bdo id='shv4W'></bdo><ul id='shv4W'></ul>
              <legend id='shv4W'><style id='shv4W'><dir id='shv4W'><q id='shv4W'></q></dir></style></legend>
            • <i id='shv4W'><tr id='shv4W'><dt id='shv4W'><q id='shv4W'><span id='shv4W'><b id='shv4W'><form id='shv4W'><ins id='shv4W'></ins><ul id='shv4W'></ul><sub id='shv4W'></sub></form><legend id='shv4W'></legend><bdo id='shv4W'><pre id='shv4W'><center id='shv4W'></center></pre></bdo></b><th id='shv4W'></th></span></q></dt></tr></i><div id='shv4W'><tfoot id='shv4W'></tfoot><dl id='shv4W'><fieldset id='shv4W'></fieldset></dl></div>
                本文介绍了圆形按钮 css的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我是一个初学者并且非常困惑,作为一个 div 标签,当我使用border-radius: 50% 给出相同的宽度和高度时,它总是变成圆形.但是如果我想制作一个圆形按钮,使用标签 a,它不会那样工作.这是我尝试使圆形边框按钮可点击的时候.

                I'm a beginner and very confused, as a div tag when I give the same width and height with border-radius: 50% it always becomes circle. but with the tag a in case I want to make a circle button, It doesnt work that way. This is when I try to make a circle border button clickable.

                 
                .btn {
                  height: 300px;
                  width: 300px;
                  border-radius: 50%;
                  border: 1px solid red;
                }

                <a class="btn" href="#"><i class="ion-ios-arrow-down"></i></a>
                 

                推荐答案

                对于 div 标签,已经有浏览器给出的默认属性 display:block.对于锚标记,浏览器没有显示属性.您需要为其添加显示属性.这就是使用 display:block 或 display:inline-block 的原因.它会起作用的.

                For div tag there is already default property display:block given by browser. For anchor tag there is not display property given by browser. You need to add display property to it. That's why use display:block or display:inline-block. It will work.

                .btn {
                  display:block;
                  height: 300px;
                  width: 300px;
                  border-radius: 50%;
                  border: 1px solid red;
                  
                }

                <a class="btn" href="#"><i class="ion-ios-arrow-down"></i></a>

                这篇关于圆形按钮 css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:将经纬度坐标排序为顺时针四边形 下一篇:如何仅使用 CSS 创建一个圆形或方形 - 中心是空心

                相关文章

                最新文章

                <small id='ulOz5'></small><noframes id='ulOz5'>

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

                  1. <tfoot id='ulOz5'></tfoot>