border-radius将div或者button变成圆形

    xiaoxiao2021-03-29  27

    利用border-radius将标签设置成圆形,只要将border-radius的值设置成50%

    <html> <head> </head> <body style="width: 99%;height: 1000px;"> <div style="width:100px;height:100px;background-color:#000000;border-radius:50%;"></div> <input type="button" style="width: 100px;height: 100px;background-color: #000000;border-radius:50%;" /> </body> </html>
    转载请注明原文地址: https://ju.6miu.com/read-664908.html

    最新回复(0)