制作多边形div

Robert De Niro
Release: 2016-06-23 14:20:40
Original
1118 people have browsed it

小弟在做网页的时候遇到一个问题:想产生多边形的div,前面的div凸出一个三角形,后面的div凹进一个三角形,让两个div凸出与凹进的部分正好嵌入,重叠,请问各位大侠,怎么实现呢?


回复讨论(解决方案)

用图片欺骗实现,用PHP自绘不美观,用canvas绘不兼容,还是图片好,你在哪见到例子复杂图型是绘出来的

如果硬要用div实现,用极小的div模拟成线,即三角形的边。


大牛来帮帮小弟啊,感激不尽!

你说说看,HTML的什么标记能产生三角形?

最简单用图片。。。。

svg 可以吗?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!