We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
实现效果如图,文字沿着圆形的边缘环绕
The text was updated successfully, but these errors were encountered:
这个就是个 shape-outside属性,使用也很简单:
shape-outside
<body> <div class="shape"></div> <div class="text">Lorem ipsum ...</div> </body>
.shape { shape-outside: circle(50%); width: 500px; height: 500px; float: left; }
Sorry, something went wrong.
除了 circle 之外,还支持很多 css 函数:
circle
shape-outside: circle() shape-outside: ellipse() shape-outside: inset(10px 10px 10px 10px) shape-outside: polygon(10px 10px, 20px 20px, 30px 30px)
当然 url 也可以:
shape-outside: url(image.png)
从支持的 css 函数来说,有点像 clip-path。
clip-path
只是兼容性并不算高:
No branches or pull requests
实现效果如图,文字沿着圆形的边缘环绕
The text was updated successfully, but these errors were encountered: