当前位置:网站首页>Boder radius has four values, and boder radius exceeds four values
Boder radius has four values, and boder radius exceeds four values
2022-07-06 20:17:00 【imkaifan】
Problem description :
border-radius If it is 4 Value , In turn, it represents the upper left corner 、 Upper right corner 、 The lower right corner 、 The lower left corner .
But if you write it like this, it won't work ? border-radius: 69px 62px 69px 69px/97px 93px 97px 97px;
boder-radius The role of
Back to the beginning ,css What did this magic wand do ?
CSS attribute border-radius Allows you to set the rounded edges of elements . When using a radius, determine a circle , When using two radii, determine an ellipse . This ( Ellipse ) The intersection of the circle and the border forms a fillet effect .
Even if the element has no border , Rounded corners can also be used background above , The specific effect is affected by background-clip influence
demo1:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.myDiv {
display: flex;
flex-wrap: wrap;
width: 500px;
height: 500px;
border: 2px solid red;
border-radius: 125px 125px 125px 125px;
}
</style>
</head>
<body>
<div class="myDiv">
</div>
</body>
</html>
Code and schematic diagram above , Roughly know how to draw this trajectory
demo2:
border-radius To put it bluntly, you can draw an irregular figure , But we can know from the above , Irregularity is irregularity , But it must be round , Or right angles , Writing a negative value does not mean that it is an obtuse angle , Or sharp corners . Negative values are treated as 0
border-radius: 4px 3px 6px / 2px 4px;
/* Equivalent to : */
border-top-left-radius: 4px 2px;
border-top-right-radius: 3px 4px;
border-bottom-right-radius: 6px 2px;
border-bottom-left-radius: 3px 4px;
border-radius: 25px 50px 70px 60px/50px 25px 10px 10px;
/* Equivalent to : */
border-top-left-radius: 25px 50px;
border-top-right-radius: 50px 25px;
border-bottom-right-radius: 70px 10px;
border-bottom-left-radius: 60px 10px;
border-radius: 25px 50px 70px 60px/50px 25px 10px 10px; The drawing is the above figure , Don't omit the eight values , Or you need to remember the corresponding relationship of missing values , Too annoying , So don't try to save trouble , Write the whole , Others can understand
边栏推荐
- Anaconda安裝後Jupyter launch 沒反應&網頁打開運行沒執行
- Groovy基础语法整理
- 【GET-4】
- 5. Wireless in vivo nano network: top ten "feasible?" problem
- POJ 3207 Ikki&#39; s Story IV – Panda&#39; s Trick (2-SAT)
- Unity making plug-ins
- JS get browser system language
- 深度学习分类网络 -- ZFNet
- Tencent byte and other big companies interview real questions summary, Netease architects in-depth explanation of Android Development
- Wechat applet common collection
猜你喜欢
永磁同步电机转子位置估算专题 —— 基波模型与转子位置角
Tencent Android development interview, basic knowledge of Android Development
【计网】第三章 数据链路层(3)信道划分介质访问控制
爬虫(14) - Scrapy-Redis分布式爬虫(1) | 详解
Discussion on beegfs high availability mode
Selenium advanced operations
腾讯字节阿里小米京东大厂Offer拿到手软,老师讲的真棒
Leetcode question 283 Move zero
Tencent T3 teaches you hand in hand. It's really delicious
Deep learning classification network -- zfnet
随机推荐
Web security - payload
[network planning] Chapter 3 data link layer (3) channel division medium access control
Example of applying fonts to flutter
Discussion on beegfs high availability mode
Color is converted to tristimulus value (r/g/b) (dry stock)
Standardized QCI characteristics
Unity making plug-ins
Appx代码签名指南
Groovy basic syntax collation
5. Nano - Net in wireless body: Top 10 "is it possible?" Questions
Tencent T3 teaches you hand in hand. It's really delicious
Groovy基础语法整理
PHP and excel phpexcel
String length limit?
【云小课】EI第47课 MRS离线数据分析-通过Flink作业处理OBS数据
夏志刚介绍
Monthly report of speech synthesis (TTS) and speech recognition (ASR) papers in June 2022
系统与应用监控的思路和方法
What happened to the kernel after malloc() was transferred? Attached malloc () and free () implementation source
报错分析~csdn反弹shell报错