NoticeUI CSS3提示样式

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 NoticeUI CSS3提示样式 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图1:

NoticeUI CSS3提示样式

部分效果截图2:

NoticeUI CSS3提示样式

HTML代码(index.html):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv="Content-type" content="text/html; charset=gb2312">
    <title>NoticeUI CSS3��ʾ��ʽ</title>
    <style type="text/css" media="screen">
        * { padding: 0; margin: 0; }

        body
        {
            background: #DDD;
            font: 12px/1.7em arial, sans-serif;
            margin: 0 auto 75px;
        }
        .dropui { margin: 10px 5px 20px; }
        .dropui-content h2 { font-size: 12px; font-style: italic; font-weight: bold; margin-bottom: .75em; text-align: center; }
    </style>
    <link rel="stylesheet" href="./example_files/style.css" type="text/css" media="screen" title="no title" charset="utf-8" />
    <link rel="stylesheet" href="./css/noticeui.css" type="text/css" media="screen" title="no title" charset="utf-8" />
</head>
<body id="">
    <div id="content">


        <!--DEMO start-->


        <div id="wrapper">

            <h1>NoticeUI - MadeByAmp</h1>

            <p>NoticeUI is a clean and stylish way to display important notifications to your users.</p>


            <p>To get started with NoticeUI add the noticeui.css stylesheet to your document:</p>

<pre>
&lt;link rel="stylesheet" href="noticeui.css" type="text/css" media="screen" title="no title" charset="utf-8" /&gt;
</pre>
            <br />
            <p>Then add the images folder contained in this download to your project and make sure all the image paths in the noticeui.css file are correct.</p>

            <h2 style="font-size: 14px;"><a href="demo.html">View full demo</a></h2>
            <br />



            <br />
            <hr />



            <h3>Simple Notice</h3>

            <div class="noticeui noticeui-success">
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>

                <span></span>
            </div>
            <p>To change the content of the notice, modify the contents of the paragraph tag below.</p>

            <p>To change the notice type, use one of the four predefined notice types: <strong>.noticeui-success, .noticeui-warn, .noticeui-error, .noticeui-info</strong></p>

<pre>
&lt;div class="noticeui noticeui-success"&gt;
	&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut 
	labore et dolore magna aliqua. &lt;/p&gt;
		
	&lt;span&gt;&lt;/span&gt;
&lt;/div&gt;	
</pre>




            <h3>Notice with Heading</h3>

            <div class="noticeui noticeui-warn">
                <h5>Warning!</h5>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>

                <span></span>
            </div>
            <p>To change the content of the notice, modify the contents of the paragraph tag below.</p>
            <p>To change the heading of the notice, modify the text in the H5 tag below.</p>

            <p>To change the notice type, use one of the four predefined notice types: <strong>.noticeui-success, .noticeui-warn, .noticeui-error, .noticeui-info</strong></p>
<pre>
&lt;div class="noticeui noticeui-warn"&gt;
	&lt;h5&gt;Warning!&lt;/h5&gt;
	&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut 
	labore et dolore magna aliqua. &lt;/p&gt;
	
	&lt;span&gt;&lt;/span&gt;
&lt;/div&gt;
</pre>





            <h3>Notice with Heading and Unordered List</h3>

            <div class="noticeui noticeui-error">
                <h5>Error!</h5>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
                <ul>
                    <li>Vivamus mattis nibh sed purus ullamcorper mollis.</li>
                    <li>Phasellus egestas nulla lobortis est eleifend dapibus.</li>
                    <li>Morbi at nisi blandit eros rhoncus gravida et quis leo.</li>
                </ul>
                <span></span>
            </div>
            <p>To change the content of the notice, modify the contents of the paragraph tag below.</p>
            <p>To change the heading of the notice, modify the text in the H5 tag below.</p>
            <p>To change the unordered list in the notice, modify the list items below adding or removing items as necessary.</p>

            <p>To change the notice type, use one of the four predefined notice types: <strong>.noticeui-success, .noticeui-warn, .noticeui-error, .noticeui-info</strong></p>
<pre>
&lt;div class="noticeui noticeui-error"&gt;
	&lt;h5&gt;Error!&lt;/h5&gt;
	&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut 
	labore et dolore magna aliqua. &lt;/p&gt;
	&lt;ul&gt;
		&lt;li&gt;Vivamus mattis nibh sed purus ullamcorper mollis.&lt;/li&gt;
		&lt;li&gt;Phasellus egestas nulla lobortis est eleifend dapibus.&lt;/li&gt;
		&lt;li&gt;Morbi at nisi blandit eros rhoncus gravida et quis leo.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;span&gt;&lt;/span&gt;
&lt;/div&gt;	
</pre>


            <br />


        </div>

        <!--DEMO end-->
    </div>
</body>
</html>

CSS代码(noticeui.css):

.noticeui{background:url(../images/noticeui/notice-bg.png) repeat-x 0 0;color:#FFF;width:83%;font-weight:normal;padding:13px 15px 0;margin-bottom:2.5em;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;-moz-box-shadow:1px 1px 2px rgba(0,0,0,.4);-webkit-box-shadow:1px 1px 2px rgba(0,0,0,.4);box-shadow:1px 1px 2px rgba(0,0,0,.4);position:relative;left:34px;}
.noticeui p{margin-bottom:1.5em;}
.noticeui p:last-child{margin-bottom:0;}
.noticeui ul{margin-left:8px;margin-bottom:1.5em;}
.noticeui ul:last-child{margin-bottom:0;}
.noticeui li{background:url(../images/noticeui/notice-tabs.png) no-repeat 0 -95px;list-style-type:none;padding-left:18px;margin-bottom:.75em;}
.noticeui-success li{background-position:0 -95px;}
.noticeui-warn li{background-position:0 -895px;}
.noticeui-error li{background-position:0 -495px;}
.noticeui-info li{background-position:0 -1295px;}
.noticeui h5{font-size:14px;font-weight:bold;margin-bottom:.65em;}
.noticeui span{background:url(../images/noticeui/notice-tabs.png) no-repeat 100% 0;width:33px;height:40px;position:absolute;left:-34px;top:9px;}
.noticeui-success{background-color:#EEF4D4;color:#596C26;border:1px solid #8FAD3D;}
.noticeui-success span{background-position:100% 0;}
.noticeui-warn{background-color:#FFEA97;color:#796100;border:1px solid #E1B500;}
.noticeui-warn span{background-position:100% -800px;}
.noticeui-error{background-color:#EFCEC9;color:#933628;border:1px solid #AE3F2F;}
.noticeui-error span{background-position:100% -400px;}
.noticeui-info{background-color:#C6D8F0;color:#285797;border:1px solid #4381CD;}
.noticeui-info span{background-position:100% -1200px;}

CSS代码(style.css):

h1{background:url(../example_files/logo.png) no-repeat 0 0;width:350px;height:55px;line-height:600px;overflow:hidden;padding-bottom:1.5em;margin:0 auto 1.7em;}
h3{font-size:14px;margin-top:3em;margin-bottom:.25em;}
#wrapper{background:#FFF;width:850px;padding:50px 20px 20px;margin:0 auto;border:1px solid #999;border-top:none;}
p{margin-bottom:1em;}
pre{background:#EEE;border:1px solid #DDD;border-left:0;border-right:0;padding:10px;margin-bottom:1em;}
ol{margin-left:28px;margin-bottom:2em;}
h3{font-size:18px;margin-bottom:1.5em;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
71.23 KB
Html CSS3特效
最新结算
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
HTML5实现CSS滤镜图片切换特效代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery+css3实现信封效果
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章