Created
January 13, 2015 07:30
-
-
Save hikerpig/e088fe026843a4862376 to your computer and use it in GitHub Desktop.
三角测试 // source http://jsbin.com/tuvonu
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>三角测试</title> | |
<style id="jsbin-css"> | |
.dropdown a { | |
padding: 10px; | |
background: #aa4599; | |
position: relative; | |
color: white; | |
text-decoration: none; | |
} | |
.dropdown .triangle { | |
position: absolute; | |
right: -10px; | |
bottom: -10px; | |
border: 10px solid transparent; | |
border-left-color: #700277; | |
transform: rotate(45deg); | |
} | |
</style> | |
</head> | |
<body> | |
<div class="dropdown"> | |
<a data-toggle="dropdown" href="javascript:;"> | |
Dropdown trigger | |
<span class="triangle"></span> | |
</a> | |
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> | |
</ul> | |
</div> | |
<script id="jsbin-source-css" type="text/css">.dropdown { | |
a { | |
padding: 10px; | |
background: #aa4599; | |
position: relative; | |
color:white; | |
text-decoration: none; | |
} | |
.triangle { | |
position: absolute; | |
right: -10px; | |
bottom: -10px; | |
border: 10px solid transparent; | |
border-left-color: #700277; | |
transform: rotate(45deg); | |
} | |
}</script> | |
</body> | |
</html> |
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
.dropdown a { | |
padding: 10px; | |
background: #aa4599; | |
position: relative; | |
color: white; | |
text-decoration: none; | |
} | |
.dropdown .triangle { | |
position: absolute; | |
right: -10px; | |
bottom: -10px; | |
border: 10px solid transparent; | |
border-left-color: #700277; | |
transform: rotate(45deg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment