首页IT科技css画弧线(css-两种画弧线方法)

css画弧线(css-两种画弧线方法)

时间2025-06-21 03:11:40分类IT科技浏览4936
导读:第一种:::after <template>...

第一种:::after

<template> <view> <view class="bg"> </view> </view> </template> <style> .bg{ background-color: pink; } .bg::after{ content: ; position: absolute; width: 160%; height: 100px; background: skyblue; left: -30%; border-radius: 0 0 50% 50%; } </style>

第二种:border-radius

<template> <view> <view class="bg"> </view> </view> </template> <style> .bg{ background-color: pink; border-radius:0 0 50% 50%/40%; height: 100px; width: 160%; margin-left: -30%; } </style>

 border-radius:* * /*

 border-radius:50% 50%/50%;

 height: 200px;

 width: 200px;

    border-radius:0 0 50% 50%/50%;

    height: 200px;

    width: 200px;

     border-radius:0 0 50% 50%/10%;

    height: 200px;

    width: 200px;

     border-radius:0 0 50% 50%/90%;

    height: 200px;

    width: 200px;

创心域SEO版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!

展开全文READ MORE
flex布局换行之后有间隙(flex 布局:实现一行固定个数,超出强制换行(流式布局))