파운데이션 태그
.label
클래스는 몇 가지 추가 정보를 제공하는 데 사용됩니다. .label
类用于提供一些附加信息:
实例
<!DOCTYPE html> <html> <head> <title>Foundation 实例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://static.php.cn/assets/foundation-5.5.3/foundation.min.css"> <script src="http://static.php.cn/assets/jquery/2.0.3/jquery.min.js"></script> <script src="http://static.php.cn/assets/foundation-5.5.3/js/foundation.min.js"></script> <script src="http://static.php.cn/assets/foundation-5.5.3/js/vendor/modernizr.js"></script> </head> <body> <div style="padding:20px;"> <h2>Example <span class="label">New</span></h2> <h3>Example <span class="label">New</span></h3> <h4>Example <span class="label">New</span></h4> </div> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例
以下类可以设置标签的颜色: .secondary
, .success
, .info
, .warning
或 .alert
:
实例
<!DOCTYPE html> <html> <head> <title>Foundation 实例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://static.php.cn/assets/foundation-5.5.3/foundation.min.css"> <script src="http://static.php.cn/assets/jquery/2.0.3/jquery.min.js"></script> <script src="http://static.php.cn/assets/foundation-5.5.3/js/foundation.min.js"></script> <script src="http://static.php.cn/assets/foundation-5.5.3/js/vendor/modernizr.js"></script> </head> <body> <div style="padding:20px;"> <h2>标签样式</h2> <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> </div> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例
圆角标签
.radius
与 .round
Instance
Run Instance»온라인 인스턴스를 보려면 "인스턴스 실행" 버튼을 클릭하세요
다음 클래스는 색상 레이블을 설정할 수 있습니다: <!DOCTYPE html> <html> <head> <title>Foundation 实例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://static.php.cn/assets/foundation-5.5.3/foundation.min.css"> <script src="http://static.php.cn/assets/jquery/2.0.3/jquery.min.js"></script> <script src="http://static.php.cn/assets/foundation-5.5.3/js/foundation.min.js"></script> <script src="http://static.php.cn/assets/foundation-5.5.3/js/vendor/modernizr.js"></script> </head> <body> <div style="padding:20px;"> <h2>圆角标签</h2> <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> </div> </body> </html>
Run Instance»온라인 인스턴스를 보려면 "인스턴스 실행" 버튼을 클릭하세요
.secondary
, .success
, .info
, .warning
또는 .alert
code>:Instance
<!DOCTYPE html> <html> <head> <title>Foundation 实例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://static.php.cn/assets/foundation-5.5.3/foundation.min.css"> <script src="http://static.php.cn/assets/jquery/2.0.3/jquery.min.js"></script> <script src="http://static.php.cn/assets/foundation-5.5.3/js/foundation.min.js"></script> <script src="http://static.php.cn/assets/foundation-5.5.3/js/vendor/modernizr.js"></script> </head> <body> <div style="padding:20px;"> <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> </div> </body> </html>
.radius
및 . round
클래스는 라벨에 둥근 모서리를 추가할 수 있습니다. 🎜🎜🎜Instance🎜🎜rrreee🎜🎜🎜예제 실행»🎜🎜온라인 예를 보려면 "인스턴스 실행" 버튼을 클릭하세요. 🎜🎜🎜🎜라벨 크기🎜🎜는 CSS를 사용하여 수정할 수 있습니다. 라벨 크기: 🎜🎜🎜Instance🎜🎜rrreee🎜🎜🎜인스턴스 실행»🎜🎜온라인 인스턴스를 보려면 "인스턴스 실행" 버튼을 클릭하세요🎜🎜