当前位置:网站首页>Introduction to border border attribute
Introduction to border border attribute
2022-07-28 12:53:00 【Xiao Yang should work hard】
Preface : I'm a freshman, Xiaobai , If there are any mistakes, please point out
border-radius Add fillet
box-shadow Add shadow
border-style Add border style
First introduced border-radius
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
#div1
{
border:2px solid #a1a1a1;
padding:10px 40px;
background:#f00;
width:300px;
border-radius:25px;
}
#div2 {
border: 2px solid red;
padding: 10px;
border-radius: 50px 20px;
}
</style>
</head>
<body>
<div id="div1">
<p>11111111111</p>
</div>
<br><br>
<div id="div2">
<p>222222222222</p>
</div>
</body>
</html>! Be careful : If two values are set , The first one is for the upper left corner and the lower right corner , The second one is for the upper right corner and the lower left corner
Then introduce box-shadow
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
#div1
{
width:300px;
height:100px;
background-color:yellow;
box-shadow: 10px 10px 5px #888888;
}
</style>
</head>
<body>
<div id="div1"></div>
</body>
</html>Finally, it introduces border-style
none: Default borderless
dotted: Define a dotted line border
dashed: Define a dotted line
solid: Define solid line borders
double: Define two borders . The width of the two borders and border-width The value of is the same
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
p
{
border-top-style:solid;
border-right-style:dotted;
border-bottom-style:dashed;
border-left-style:double;
}
</style>
</head>
<body>
<p> Different boundary styles .</p>
</body>
</html>
边栏推荐
- Unity loads GLB model
- Under what circumstances can the company dismiss employees
- Deployment之滚动更新策略。
- Interface control telerik UI for WPF - how to use radspreadsheet to record or comment
- Scala transformation, filtering, grouping, sorting
- CCF201912-2 回收站选址
- Science 重磅:AI设计蛋白质再获突破,可设计特定功能性蛋白质
- Redefinition problem of defining int i variable in C for loop
- New progress in the implementation of the industry | the openatom openharmony sub forum of the 2022 open atom global open source summit was successfully held
- C语言项目中使用json
猜你喜欢

Review the IO stream again, and have an in-depth understanding of serialization and deserialization
![[half understood] zero value copy](/img/5b/18082c1ea93f2e3bbf4920d73163fd.png)
[half understood] zero value copy

leetcode:704二分查找

Aopmai biological has passed the registration: the half year revenue is 147million, and Guoshou Chengda and Dachen are shareholders

机器学习实战-逻辑回归-19

Hc-05 Bluetooth module debugging slave mode and master mode experience

leetcode:数组

LeetCode 42.接雨水

Leetcode94. Middle order traversal of binary trees

界面控件Telerik UI for WPF - 如何使用RadSpreadsheet记录或评论
随机推荐
Merge table rows - three levels of for loop traversal data
十三. 实战——常用依赖的作用
利用依赖包直接实现分页、SQL语句
非标自动化设备企业如何借助ERP系统,做好产品质量管理?
20220728 common methods of object class
揭秘界面控件DevExpress WinForms为何弃用受关注的MaskBox属性
Can molecular modeling solve the data dilemma of AI pharmacy?
Leetcode394 string decoding
The input string contains an array of numbers and non characters, such as a123x456. Take the consecutive numbers as an integer, store them in an array in turn, such as 123 in a[0], 456 in a[1], and ou
What SaaS architecture design does a software architect need to know?
stm32 回环结构接收串口数据并处理
Leetcode94. Middle order traversal of binary trees
Block reversal (summer vacation daily question 7)
Deployment之滚动更新策略。
Baidu map API adds information window circularly. The window only opens at the last window position and the window information content is the same solution
Uncover why devaxpress WinForms, an interface control, discards the popular maskbox property
新零售电商O2O模式解析
Ten prohibitions for men and women in love
Communication example between upper computer and Mitsubishi fn2x
Leetcode 42. rainwater connection