Beautiful information tips, to share the next hope for everyone useful

Source: Internet
Author: User

Beautiful user experience friendly information tips

HTML structure:

<class= "Msg24">  <class= "OK"</P></Div >          

CSS style:

. Msg. Error,. Msg. Stop,. Msg. alert,. Msg. attention,. Msg. tips,. Msg. OK,. Msg. notice,. Msg. question,. Msg. Help,. ms G. Small-help {
Color: #404040;
Background:url (msg_bg.png) no-repeat;
border:1px solid #ddd;
Float:left;
padding:2px 10px 2px 23px;
line-height:18px;
}
. Msg. Error {
BACKGROUND-POSITION:3PX 3px;
Border-color: #ff8080;
Background-color: #fff2f2;
}
. Msg. Stop {
background-position:3px-47px;
Border-color: #ff8080;
Background-color: #fff2f2;
}
. Msg. alert {
background-position:3px-97px;
Border-color: #ff8c40;
Background-color: #fff5f6;
}
. Msg. Attention {
background-position:3px-147px;
Border-color: #40b3ff;
Background-color: #e5f5ff;
}
. Msg. Tips {
background-position:3px-197px;
Border-color: #ffcc7f;
Background-color: #ffffe5;
}
. Msg. OK {
background-position:3px-247px;
Border-color: #4dbf00;
Background-color: #f0ffe5;
}
. Msg. notice {
background-position:5px-295px;
Border-color: #40b3ff;
Background-color: #e6f5ff;
}
. Msg. Question {
background-position:3px-347px;
Border-color: #bfbfbf;
Background-color: #f2f2f2;
}
. Msg. small-help {
background-position:5px-1095px;
Border-color: #fff;
Background-color: #fff;
}
. Msg. help {
background-position:3px-1197px;
Border-color: #fff;
Background-color: #fff;
}
. msg24{padding-left:50px;}
. msg24. Error,. Msg24. Attention,. Msg24. Tips,. msg24. OK,. Msg24. Question {
font-size:14px;
Font-weight:bold;
Color: #404040;
Background:url (msg_bg.png) no-repeat;
border:1px solid #ddd;
padding:17px 10px 17px 56px;
line-height:22px;
width:450px;
}
. msg24. Error {
background-position:12px-388px;
Border-color: #ff8080;
Background-color: #fff2f2;
}
. Msg24. Attention {
background-position:12px-488px;
Border-color: #40b3ff;
Background-color: #e5f5ff;
}
. msg24. Tips {
background-position:15px-888px;
Border-color: #ffcc7f;
Background-color: #ffffe5;
}
. msg24. OK {
background-position:12px-988px;
Border-color: #4dbf00;
Background-color: #f0ffe5;
}
. msg24. Question {
background-position:12px-788px;
Border-color: #bfbfbf;
Background-color: #f2f2f2;
}
. Msg. Naked,. Msg24. Naked {
Border:none;
Background-color:transparent;
}
. msg24. naked-tips {
background-position:15px-688px;
}
. msg24. Naked-ok {
background-position:12px-588px;
}
. Msg:after,. Msg24:after {
Content: ' \0020 ';
Display:block;
height:0;
Clear:both;
}
. MSG,. msg24
{*zoom:1;}
Call Method:
 ///<summary> ///msgico error,stop, alert, Attention,tips, OK, notice, question,help, small-help info tip ///</summary> // /<param name= "Msgico" ></param> ///<param name= "Msgtext" ></param> ///<returns></returns> public static string showmsg (string Msgico, string msgText) {string html =  "<div class=\" msg24\ "><p class=\" "+ Msgico + " \ "> "+ Msgtext + return html;} Literalmsg.text = commonhelper.showmsg ( "OK",  "updated successfully! "); 
/span>

Beautiful information tips, to share the next hope for everyone useful

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.