Created
June 8, 2013 00:27
-
-
Save zhangskills/5733314 to your computer and use it in GitHub Desktop.
css实现三角形,兼容ie6
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 PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>css三角形</title> | |
<style> | |
.tipArrow { | |
/*右边有颜色,其他透明*/ | |
border-color: transparent #e00 transparent transparent; | |
border-style: solid; | |
border-width: 6px 6px 6px 0px; | |
padding: 0; | |
width: 0; | |
height: 0; | |
/* ie6 height fix */ | |
font-size: 0; | |
line-height: 0; | |
/* ie6 transparent fix */ | |
_border-top-color: #dddddd; | |
_border-bottom-color: #dddddd; | |
_filter: chroma( color = #dddddd); | |
} | |
</style> | |
</head> | |
<body> | |
<div class="tipArrow"/> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment