CSS3 creates the Message icon of an Apple mobile phone. It is super large and supports css3message.

Source: Internet
Author: User

CSS3 creates the Message icon of an Apple mobile phone. It is super large and supports css3message.
<! Doctype html>
<Html lang = zh-cn>
<Head>
<Meta charset = UTF-8>
<Title> iphone message icon </title>
<Style>
* {Margin: 0px; padding: 0px ;}
Body {background: # b1b1b1; margin: 0px; padding: 0px; font-size: 14px; color: #000 ;}
. Icon {width: 56px; height: 56px; z-index: 10; position: absolute; left: 50%; top: 50%; margin-left:-28px; margin-top: -28px;
-Webkit-border-radius: 10px;
-Moz-border-radius: 10px;
Border-radius: 10px;
-Webkit-box-shadow: rgba (0.5, 0,) 0 1px 2px;
-Moz-box-shadow: rgba (0.5, 0,) 0 1px 2px;
Box-shadow: rgba (0, 0, 0.5) 0 1px 2px;
}
. Icon span {
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;
Text-shadow: rgba (0.3, 0,) 1px 2px 1px;
Text-transform: capitalize;
}
. I _message {
Width: 100%; height: 100%;
-Webkit-border-radius: 10px;
-Moz-border-radius: 10px;
Border-radius: 10px;
Position: relative;
Overflow: hidden;
Cursor: pointer;
Background:-webkit-linear-gradient (top, #015801, #06f700 );
Background:-moz-linear-gradient (top, #015801, #06f700 );
Background:-ms-linear-gradient (top, #015801, #06f700 );
Background:-o-linear-gradient (top, #015801, #06f700 );
Background: linear-gradient (top, #015801, #06f700 );
-Ms-filter: progid: DXImageTransform. Microsoft. gradient (startColorstr = '#015801', endColorstr = '#06f700', GradientType = 0 );
Filter: progid: DXImageTransform. Microsoft. gradient (startColorstr = '#015801', endColorstr = '#06f700', GradientType = 0 );
Overflow: hidden;
}


. I _message. bg_angled {
-Webkit-border-radius: 10px;
-Moz-border-radius: 10px;
Border-radius: 10px;
Width: 125%;
Height: 125%;
Position: absolute;
Left:-7px;
Top:-7px;
-Webkit-background-size: 4px 4px;
-Moz-background-size: 4px 4px;
-Ms-background-size: 4px 4px;
-O-background-size: 4px 4px;
Background-size: 4px 4px;
Background-color: none;
Background-image:-webkit-linear-gradient (top, rgba (255,255,255,. 2) 0%, rgba (255,255,255,. 2) 50%, transparent 50%, transparent 100% );
Background-image:-moz-linear-gradient (top, rgba (255,255,255,. 2) 0%, rgba (255,255,255,. 2) 50%, transparent 50%, transparent 100% );
Background-image:-ms-linear-gradient (top, rgba (255,255,255,. 2) 0%, rgba (255,255,255,. 2) 50%, transparent 50%, transparent 100% );
Background-image:-o-linear-gradient (top, rgba (255,255,255,. 2) 0%, rgba (255,255,255,. 2) 50%, transparent 50%, transparent 100% );
Background-image: linear-gradient (top, rgba (255,255,255,. 2) 0%, rgba (255,255,255,. 2) 50%, transparent 50%, transparent 100% );
-Webkit-transform: rotate (-45deg );
-Moz-transform: rotate (-45deg );
-Ms-transform: rotate (-45deg );
-O-transform: rotate (-45deg );
Transform: rotate (-45deg );
}


. I _message: after {
Content :'';
-Webkit-box-shadow: inset #06f700 0 0 2px;
-Moz-box-shadow: inset #06f700 0 0 2px;
Box-shadow: inset #06f700 0 0 2px;
Width: 100%;
Height: 100%;
Position: absolute;
Display: block;
-Webkit-border-radius: 10px;
-Moz-border-radius: 10px;
Border-radius: 10px;
Z-index: 2;
}


. I _message: before {
Content :'';
Width: 100%;
Height: 50%;
Position: absolute;
Display: block;
-Webkit-border-radius: 10px 10px 50% 50%/10px 10px 5px 5px;
-Moz-border-radius: 10px 10px 50% 50%/10px 10px 5px 5px;
Border-radius: 10px 10px 50% 50%/10px 10px 5px 5px;
Background: rgba (255,255,255, 0.5 );
Z-index: 5;
-Webkit-box-shadow: inset rgba (255,255,255, 0.5) 0 1px 0;
-Moz-box-shadow: inset rgba (255,255,255, 0.5) 0 1px 0;
Box-shadow: inset rgba (255,255,255, 0.5) 0 1px 0;
}


. I _message. bulb {
Position: absolute;
Width: 39px;
Height: 32px;
Top: 47%;
Left: 50%;
Margin-left:-19.5px;
Margin-top:-16px;
-Webkit-border-radius: 50%/50%;
-Moz-border-radius: 50%/50%;
Border-radius: 50%/50%;
Background:-webkit-linear-gradient (bottom, # fff, # cbdae9 50% );
Background:-moz-linear-gradient (bottom, # fff, # cbdae9 50% );
Background:-ms-linear-gradient (bottom, # fff, # cbdae9 50% );
Background:-o-linear-gradient (bottom, # fff, # cbdae9 50% );
Background: linear-gradient (bottom, # fff, # cbdae9 50% );
-Ms-filter: progid: DXImageTransform. Microsoft. gradient (startColorstr = '# cbdae9', endColorstr =' # ffff', GradientType = 0 );
Filter: progid: DXImageTransform. Microsoft. gradient (startColorstr = '# cbdae9', endColorstr =' # ffff', GradientType = 0 );
-Webkit-box-shadow: rgba (0.4, 0,) 0 0 2px, inset # e7e8e9 0-1px 0;
-Moz-box-shadow: rgba (0.4, 0,) 0 0 2px, inset # e7e8e9 0-1px 0;
Box-shadow: rgba (0, 0, 0.4) 0 0 2px, inset # e7e8e9 0-1px 0;
Z-index: 2;
}


. I _message. tail {
Position: absolute;
Background: # fff;
Width: 11px;
Height: 7px;
Left: 11px;
Bottom: 12px;
-Webkit-border-radius: 0 0 100% 0/0 0 100% 0;
-Moz-border-radius: 0 0 100% 0/0 0 100% 0;
Border-radius: 0 0 100% 0/0 0 100% 0;
Z-index: 1;
-Webkit-box-shadow: rgba (0.4, 0,) 0 0 2px, inset # e7e8e9 0-1px 0;
-Moz-box-shadow: rgba (0.4, 0,) 0 0 2px, inset # e7e8e9 0-1px 0;
Box-shadow: rgba (0, 0, 0.4) 0 0 2px, inset # e7e8e9 0-1px 0;
}


. I _message. tail: after {
Content :'';
Position: absolute;
Width: 10px;
Height: 10px;
-Webkit-border-radius: 20px;
-Moz-border-radius: 20px;
Border-radius: 20px;
Left:-6px;
Top:-3px;
Background:-webkit-linear-gradient (bottom, #05d400, #04ba00 );
Background:-moz-linear-gradient (bottom, #05d400, #04ba00 );
Background:-ms-linear-gradient (bottom, #05d400, #04ba00 );
Background:-o-linear-gradient (bottom, #05d400, #04ba00 );
Background: linear-gradient (bottom, #05d400, #04ba00 );
-Ms-filter: progid: DXImageTransform. Microsoft. gradient (startColorstr = '#04ba00', endColorstr = '#05d400', GradientType = 0 );
Filter: progid: DXImageTransform. Microsoft. gradient (startColorstr = '# 04ba00', endColorstr =' #05d400 ', GradientType = 0 );
}


. I _message. tail: before {
Content :'';
Position: absolute;
Width: 10px;
Height: 10px;
-Webkit-border-radius: 20px;
-Moz-border-radius: 20px;
Border-radius: 20px;
Left:-6px;
Top:-3px;
-Webkit-background-size: 4px 4px;
-Moz-background-size: 4px 4px;
-Ms-background-size: 4px 4px;
-O-background-size: 4px 4px;
Background-size: 4px 4px;
Background-image:-webkit-linear-gradient (top, rgba (255,255,255 ,. 2) 0%, rgba (255,255,255 ,. 2) 20%, transparent 20%, transparent 70%, rgba (255,255,255 ,. 2) 70%, rgba (255,255,255 ,. (2) 100% );
Background-image:-moz-linear-gradient (top, rgba (255,255,255 ,. 2) 0%, rgba (255,255,255 ,. 2) 20%, transparent 20%, transparent 70%, rgba (255,255,255 ,. 2) 70%, rgba (255,255,255 ,. (2) 100% );
Background-image:-ms-linear-gradient (top, rgba (255,255,255 ,. 2) 0%, rgba (255,255,255 ,. 2) 20%, transparent 20%, transparent 70%, rgba (255,255,255 ,. 2) 70%, rgba (255,255,255 ,. (2) 100% );
Background-image:-o-linear-gradient (top, rgba (255,255,255 ,. 2) 0%, rgba (255,255,255 ,. 2) 20%, transparent 20%, transparent 70%, rgba (255,255,255 ,. 2) 70%, rgba (255,255,255 ,. (2) 100% );
Background-image: linear-gradient (top, rgba (255,255,255 ,. 2) 0%, rgba (255,255,255 ,. 2) 20%, transparent 20%, transparent 70%, rgba (255,255,255 ,. 2) 70%, rgba (255,255,255 ,. (2) 100% );
-Webkit-transform: rotate (-45deg );
-Moz-transform: rotate (-45deg );
-Ms-transform: rotate (-45deg );
-O-transform: rotate (-45deg );
Transform: rotate (-45deg );
Z-index: 10;
}


. I _message. hack {
Background:-webkit-linear-gradient (top, # ebf1f7, # fff );
Background:-moz-linear-gradient (top, # ebf1f7, # fff );
Background:-ms-linear-gradient (top, # ebf1f7, # fff );
Background:-o-linear-gradient (top, # ebf1f7, # fff );
Background: linear-gradient (top, # ebf1f7, # fff );
-Ms-filter: progid: DXImageTransform. Microsoft. gradient (startColorstr = '# ebf1f7', endColorstr = '# ffff', GradientType = 0 );
Filter: progid: DXImageTransform. Microsoft. gradient (startColorstr = '# ebf1f7', endColorstr = '# ffff', GradientType = 0 );
Width: 5px;
Height: 5px;
Left: 15px;
Top: 36px;
Position: absolute;
Z-index: 10;
-Webkit-border-radius: 0 0 3px 0;
-Moz-border-radius: 0 0 3px 0;
Border-radius: 0 0 3px 0;
}
</Style>
</Head>
<Body>
<Div> <A href = "http://www.999jiujiu.com/"> http://www.999jiujiu.com/</A> </div>
<Div class = "icon">
<Div class = "I _message">
<Div class = "bg_angled"> </div>
<Div class = "bulb"> </div>
<Div class = "tail"> </div>
<Div class = "hack"> </div>
</Div>
<Span> Message </span>
</Div>
<Script type = "text/javascript">
Var _ bdhmProtocol = ("https:" = document. location. protocol )? "Https: //": "http ://");
Document. write (unescape ("% 3 Cscript src = '" + _ bdhmProtocol + "plain type = 'text/javascript' % 3E % 3C/script % 3E "));
</Script>
</Body>
</Html>

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.