Circle button css

后端 未结 9 776
忘了有多久
忘了有多久 2020-12-13 06:00

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

9条回答
  •  既然无缘
    2020-12-13 06:43

    Though I can see an accepted answer and other great answers too but thought of sharing what I did to solve this issue (in just one line).

    CSS ( Created a Class ) :

    .circle {
        border-radius: 50%;
    }
    

    HTML (Added that css class to my button) :

    
    

    So Easy Right ?

    Note : What I actually did was proper use of ionic classes with just one line of css.

    See Result your self on this JSFiddle :

    https://jsfiddle.net/nikdtu/cnx48u43/

提交回复
热议问题