codecamp

Foundation 标签

.label 类用于提供一些附加信息:

实例

<h2>Example <span class="label">New </span></h2>
<h3>Example <span class="label">New </span></h3>
<h4>Example <span class="label">New </span></h4>

尝试一下 »

以下类可以设置标签的颜色: .secondary, .success, .info, .warning.alert:

实例

<span class="label">Default Label</span >
<span class="label secondary">Secondary Label</span >
<span class="label success">Success Label</span >
<span class="label info">Info Label</span >
<span class="label warning">Success Label</span >
<span class="label alert">Alert Label</span >

尝试一下 »

圆角标签

.radius.round 类可以为标签添加圆角:

实例

<span class="label">Default Label</span >
<span class="label radius">Radius Label</span >
<span class="label round">Round Label</span >
<span class="label success round">5</span >

尝试一下 »

标签大小

可以使用 CSS 来修改标签的大小:

实例

<h1>Example <span class="label" style= "font-size:36px;">New</span></h1>
<h2>Example <span class="label" style= "font-size:30px;">New</span></h2>
<h3>Example <span class="label" style= "font-size:20px;">New</span></h3>
<h4>Example <span class="label">New </span></h4>

尝试一下 »
Foundation 图标
Foundation 提醒框
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }