search

Home  >  Q&A  >  body text

html - 只有一个div时如何利用css画出自己需要的任意图形?有哪些限制?

这个网站只用一个p+CSS3画出了

只用一个p,给它设置background-image,能否画出任意的矢量图形?可以画出的图形有没有什么限制?

天蓬老师天蓬老师2784 days ago626

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 11:08:07

    CSS drawing graphics is often implemented with the help of pseudo elements: before and :after. At the same time, some properties in CSS3 need to be used. The following blog post introduces some examples of CSS drawing graphics. You can refer to it:

    http://xfhnever.github.io/blog/2014/07/24/css-shape/

    I don’t particularly understand what you mean, and the answer may not solve your problem.

    reply
    0
  • Cancelreply