-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,32 @@ | ||
<!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"> | ||
<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> | ||
</head> | ||
<style> | ||
</head> | ||
<style> | ||
.sanjiao { | ||
border: 10px solid transparent; | ||
border-left: 10px solid red; | ||
width: 0; | ||
height: 0; | ||
border: 10px solid transparent; | ||
border-left: 10px solid red; | ||
} | ||
.sanjiao2 { | ||
width: 0; | ||
height: 0; | ||
border: 10px solid transparent; | ||
border-bottom: 10px solid blue; | ||
} | ||
</style> | ||
</style> | ||
|
||
<body> | ||
<body> | ||
<div> | ||
切记,需要添加加上 width:0; height:0; | ||
否则会继承祖先元素的宽高,导致页面变形 | ||
</div> | ||
<div class="sanjiao"></div> | ||
</body> | ||
|
||
</html> | ||
<div class="sanjiao2"></div> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.