CSS3完美实现iphone电话图标 <br />*{margin:0px;padding:0px;}<br />body{background:#b1b1b1;margin:0px;padding:0px;font-size:14px;color:#000;}<br />.icon {width: 56px;height: 56px;z-index: 10;position: absolute;left: 50%;top: 50%;margin-left: -28px;margin-top: -28px;<br /> -webkit-border-radius: 10px;<br /> -moz-border-radius: 10px;<br /> border-radius: 10px;<br /> -webkit-box-shadow: rgba(0,0,0,0.5) 0 1px 2px;<br /> -moz-box-shadow: rgba(0,0,0,0.5) 0 1px 2px;<br /> box-shadow: rgba(0,0,0,0.5) 0 1px 2px; <br />}<br />.icon span {<br /> display: block;text-align: center;font: bold 11px/15px "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;color: #fff;position: absolute;top: 58px;left: -10px;width: 76px;<br /> text-shadow: rgba(0,0,0,0.3) 1px 2px 1px;<br /> text-transform: capitalize;<br />}<br />.i_phone {<br /> width: 100%;height: 100%;<br /> -webkit-border-radius: 10px;<br /> -moz-border-radius: 10px;<br /> border-radius: 10px;<br /> position: relative;<br /> overflow: hidden;<br /> cursor: pointer;<br /> background:-webkit-linear-gradient(top, #015801, #06f700);<br /> background:-moz-linear-gradient(top, #015801, #06f700);<br /> background:-ms-linear-gradient(top, #015801, #06f700);<br /> background:-o-linear-gradient(top, #015801, #06f700);<br /> background:linear-gradient(top, #015801, #06f700);<br /> -ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#015801', endColorstr='#06f700', GradientType=0);<br /> filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#015801', endColorstr='#06f700', GradientType=0);<br />} <p>.i_phone .bg_angled {<br /> -webkit-border-radius: 10px;<br /> -moz-border-radius: 10px;<br /> border-radius: 10px;<br /> width: 125%; <br /> height: 125%;<br /> position: absolute;<br /> left: -7px;<br /> top: -7px;<br /> -webkit-background-size: 4px 4px;<br /> -moz-background-size: 4px 4px;<br /> -ms-background-size: 4px 4px;<br /> -o-background-size: 4px 4px;<br /> background-size: 4px 4px;<br /> background-color: none;<br /> background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .2) 50%, transparent 50%, transparent 100%);<br /> background-image: -moz-linear-gradient(top, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .2) 50%, transparent 50%, transparent 100%);<br /> background-image: -ms-linear-gradient(top, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .2) 50%, transparent 50%, transparent 100%);<br /> background-image: -o-linear-gradient(top, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .2) 50%, transparent 50%, transparent 100%);<br /> background-image: linear-gradient(top, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .2) 50%, transparent 50%, transparent 100%);<br /> -webkit-transform: rotate(-45deg);<br /> -moz-transform: rotate(-45deg);<br /> -ms-transform: rotate(-45deg);<br /> -o-transform: rotate(-45deg);<br /> transform: rotate(-45deg);<br />} <p>.i_phone:after{<br /> content: '';<br /> -webkit-box-shadow: inset #06f700 0 0 2px;<br /> -moz-box-shadow: inset #06f700 0 0 2px;<br /> box-shadow: inset #06f700 0 0 2px;<br /> width: 100%;<br /> height: 100%;<br /> position: absolute;<br /> display: block;<br /> -webkit-border-radius: 10px;<br /> -moz-border-radius: 10px;<br /> border-radius: 10px;<br /> z-index: 2;<br />} <p>.i_phone:before{<br /> content: '';<br /> width: 100%;<br /> height: 50%;<br /> position: absolute;<br /> display: block;<br /> -webkit-border-radius: 10px 10px 50% 50% / 10px 10px 5px 5px;<br /> -moz-border-radius: 10px 10px 50% 50% / 10px 10px 5px 5px;<br /> border-radius: 10px 10px 50% 50% / 10px 10px 5px 5px;<br /> background: rgba(255,255,255,0.5);<br /> z-index: 5;<br /> -webkit-box-shadow: inset rgba(255,255,255,0.5) 0 1px 0;<br /> -moz-box-shadow: inset rgba(255,255,255,0.5) 0 1px 0;<br /> box-shadow: inset rgba(255,255,255,0.5) 0 1px 0;<br />} <p>.i_phone .truba {<br /> position: absolute;<br /> top: 7px;<br /> left: 5px;<br /> z-index: 1;<br /> width: 40px;<br /> height:40px;<br /> font: bold 40px/40px "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif !important;<br /> color: #f1f5f9;<br /> -webkit-transform: rotate(90deg);<br /> -moz-transform: rotate(90deg);<br /> -ms-transform: rotate(90deg);<br /> -o-transform: rotate(90deg);<br /> transform: rotate(90deg);<br /> text-shadow: rgba(0,0,0,0.5) 0 0 2px;<br />} <p>.i_phone .truba:after {<br /> content: '';<br /> position: absolute;<br /> width: 12px;<br /> height: 10px;<br /> top: 2px;<br /> left: 25px;<br /> background: #f1f5f9;<br /> -webkit-border-radius: 50% / 2px 2px 6px 2px;<br /> -moz-border-radius: 50% / 2px 2px 6px 2px;<br /> border-radius: 50% / 2px 2px 6px 2px;<br /> -webkit-transform: rotate(-57deg);<br /> -moz-transform: rotate(-57deg);<br /> -ms-transform: rotate(-57deg);<br /> -o-transform: rotate(-57deg);<br /> transform: rotate(-57deg);<br />} <p>.i_phone .truba:before {<br /> content: '';<br /> position: absolute;<br /> width: 12px;<br /> height: 10px;<br /> top: 24px;<br /> left: 4px;<br /> background: #f1f5f9;<br /> -webkit-border-radius: 50% / 2px 2px 2px 6px;<br /> -moz-border-radius: 50% / 2px 2px 2px 6px;<br /> border-radius: 50% / 2px 2px 2px 6px;<br /> -webkit-transform: rotate(-25deg);<br /> -moz-transform: rotate(-25deg);<br /> -ms-transform: rotate(-25deg);<br /> -o-transform: rotate(-25deg);<br /> transform: rotate(-25deg);<br />} <p>.i_phone .truba b {<br /> position: absolute;<br /> width: 35px;<br /> height: 4px;<br /> top: 17px;<br /> left: 7px;<br /> background: #f1f5f9;<br /> border-radius: 0 0 5px 5px;<br /> -webkit-transform: rotate(-47deg);<br /> -moz-transform: rotate(-47deg);<br /> -ms-transform: rotate(-47deg);<br /> -o-transform: rotate(-47deg);<br /> transform: rotate(-47deg);<br />}<br /> http://www.999jiujiu.com/ Phone