当前位置:网站首页>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
边栏推荐
- Speech recognition (ASR) paper selection: talcs: an open source Mandarin English code switching corps and a speech
- Unity load AB package
- How to select several hard coded SQL rows- How to select several hardcoded SQL rows?
- Unity writes a timer tool to start timing from the whole point. The format is: 00:00:00
- js获取浏览器系统语言
- Logstash expressway entrance
- Tencent cloud database public cloud market ranks top 2!
- AddressSanitizer 技术初体验
- 【云小课】EI第47课 MRS离线数据分析-通过Flink作业处理OBS数据
- JVM_常见【面试题】
猜你喜欢
Oceanbase Community Edition OBD mode deployment mode stand-alone installation
【Yann LeCun点赞B站UP主使用Minecraft制作的红石神经网络】
An East SMS login resurrection installation and deployment tutorial
Continuous test (CT) practical experience sharing
SQL injection 2
Selenium advanced operations
Cesium Click to draw a circle (dynamically draw a circle)
Web security - payload
[cloud native and 5g] micro services support 5g core network
BeagleBoneBlack 上手记
随机推荐
夏志刚介绍
【云原生与5G】微服务加持5G核心网
Wonderful coding [hexadecimal conversion]
mod_ WSGI + pymssql path SQL server seat
新一代垃圾回收器—ZGC
HDU 1026 Ignatius and the Princess I 迷宫范围内的搜索剪枝问题
Standardized QCI characteristics
HDU 1026 search pruning problem within the labyrinth of Ignatius and the prince I
青龙面板白屏一键修复
Catch ball game 1
Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
Leetcode brush first_ Maximum Subarray
Method keywords deprecated, externalprocname, final, forcegenerate
腾讯T4架构师,android面试基础
【GET-4】
HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
AsyncHandler
Standardized QCI characteristics
语音识别(ASR)论文优选:全球最大的中英混合开源数据TALCS: An Open-Source Mandarin-English Code-Switching Corpus and a Speech