Home  >  Article  >  Web Front-end  >  How to draw a lollipop using css

How to draw a lollipop using css

王林
王林forward
2020-04-24 09:15:113726browse

How to draw a lollipop using css

Let’s take a look at the renderings first:

How to draw a lollipop using css

(recommended related video tutorials: css video tutorial)

CSS code:





棒棒糖
    

用css画一个棒棒糖

要求:

1:棒棒糖中间文字为水平居中

2:不得少于三层颜色

hello world!

Recommended tutorial: css quick start

The above is the detailed content of How to draw a lollipop using css. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete