CSS 日常练习----border-radius

记录日常 CSS 练习的小知识点 —— border-radius

border-radius

点击预览

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.test{
width: 200px;
height: 200px;
background: #000;
}
</style>
</head>
<body>
<div class="test"></div>
<script>
var test = document.querySelector('.test');
test.onclick = function (e) {
var e = e || event;
console.log(window)
console.log(window.event)
console.log(window.document)
};
</script>
</body>
</html>
0%