文件
css
data
fonts
images
js
.gitignore
LICENSE
README.en.md
README.md
favicon.ico
index.html
lyear_components_accordion.html
lyear_components_alerts.html
lyear_components_badge.html
lyear_components_breadcrumb.html
lyear_components_button_group.html
lyear_components_buttons.html
lyear_components_card.html
lyear_components_carousel.html
lyear_components_close_button.html
lyear_components_collapse.html
lyear_components_dropdowns.html
lyear_components_list_group.html
lyear_components_modal.html
lyear_components_navbar.html
lyear_components_navs_tabs.html
lyear_components_offcanvas.html
lyear_components_other.html
lyear_components_pagination.html
lyear_components_placeholders.html
lyear_components_popovers.html
lyear_components_progress.html
lyear_components_scrollspy.html
lyear_components_spinners.html
lyear_components_toasts.html
lyear_components_tooltips.html
lyear_content_figures.html
lyear_content_images.html
lyear_content_tables.html
lyear_content_typography.html
lyear_forms_checkbox.html
lyear_forms_control.html
lyear_forms_floating_labels.html
lyear_forms_input_group.html
lyear_forms_layout.html
lyear_forms_overview.html
lyear_forms_radio.html
lyear_forms_range.html
lyear_forms_select.html
lyear_forms_switch.html
lyear_forms_validation.html
lyear_helpers_clearfix.html
lyear_helpers_colored_links.html
lyear_helpers_position.html
lyear_helpers_ratio.html
lyear_helpers_stacks.html
lyear_helpers_stretched_link.html
lyear_helpers_text_truncation.html
lyear_helpers_vertical_rule.html
lyear_helpers_visually_hidden.html
lyear_js_chartjs.html
lyear_js_colorpicker.html
lyear_js_datepicker.html
lyear_js_fullcalendar.html
lyear_js_jconfirm.html
lyear_js_loading.html
lyear_js_maxlength.html
lyear_js_notify.html
lyear_js_select.html
lyear_js_tags_input.html
lyear_layout_break_point.html
lyear_layout_columns.html
lyear_layout_containers.html
lyear_layout_grid.html
lyear_layout_gutters.html
lyear_layout_utilities.html
lyear_layout_zindex.html
lyear_main.html
lyear_other_icons.html
lyear_pages_add_doc.html
lyear_pages_config.html
lyear_pages_doc.html
lyear_pages_edit_pwd.html
lyear_pages_error.html
lyear_pages_gallery.html
lyear_pages_guide.html
lyear_pages_login_1.html
lyear_pages_login_2.html
lyear_pages_login_3.html
lyear_pages_login_4.html
lyear_pages_profile.html
lyear_pages_rabc.html
lyear_pages_table.html
lyear_utilities_background.html
lyear_utilities_borders.html
lyear_utilities_colors.html
lyear_utilities_display.html
lyear_utilities_flex.html
lyear_utilities_float.html
lyear_utilities_interactions.html
lyear_utilities_opacity.html
lyear_utilities_overflow.html
lyear_utilities_position.html
lyear_utilities_shadows.html
lyear_utilities_sizing.html
lyear_utilities_spacing.html
lyear_utilities_text.html
lyear_utilities_vertical_align.html
lyear_utilities_visibility.html
克隆/下载
lyear_helpers_vertical_rule.html 3.45 KB
一键复制 编辑 原始数据 按行查看 历史
笔下光年 提交于 2年前 . 提交代码
<!DOCTYPE html>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta name="keywords" content="LightYear,LightYearAdmin,光年,后台模板,后台管理系统,光年HTML模板">
<meta name="description" content="Light Year Admin V5是一个基于Bootstrap v5.1.3的后台管理系统的HTML模板。">
<title>垂直法则 - 光年(Light Year Admin V5)后台管理系统模板</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<link rel="stylesheet" type="text/css" href="css/materialdesignicons.min.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.min.css">
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="card">
<header class="card-header"><div class="card-title">垂直法则</div></header>
<div class="card-body">
<p>使用自定义垂直规则助手创建垂直分隔线,如 &lt;hr&gt; 元素。</p>
<h6>怎么运行的</h6>
<p>垂直规则受到 &lt;hr&gt; 元素的启发,允许您在常见布局中创建垂直分隔线。 它们的样式就像 &lt;hr&gt; 元素一样:</p>
<ul>
<li>它们有 <code>1px</code></li>
<li>他们的 <code>min-height</code><code>1em</code></li>
<li>它们的颜色是通过 <code>currentColor</code><code>opacity</code> 设置的</li>
<li>根据需要使用其他样式自定义它们。</li>
</ul>
<h6>例子</h6>
<div class="border-example">
<div class="vr"></div>
</div>
<pre>&lt;div class="vr"&gt;&lt;/div&gt;</pre>
<p>垂直规则在 flex 布局中缩放它们的高度:</p>
<div class="border-example">
<div class="d-flex" style="height: 200px;">
<div class="vr"></div>
</div>
</div>
<pre>&lt;div class="d-flex" style="height: 200px;"&gt;
&lt;div class="vr"&gt;&lt;/div&gt;
&lt;/div&gt;</pre>
<h6>堆栈</h6>
<p>它们也可以在堆栈中使用:</p>
<div class="border-example">
<div class="hstack gap-3">
<div class="bg-light border">First item</div>
<div class="bg-light border ms-auto">Second item</div>
<div class="vr"></div>
<div class="bg-light border">Third item</div>
</div>
</div>
<pre>&lt;div class="hstack gap-3"&gt;
&lt;div class="bg-light border"&gt;First item&lt;/div&gt;
&lt;div class="bg-light border ms-auto"&gt;Second item&lt;/div&gt;
&lt;div class="vr"&gt;&lt;/div&gt;
&lt;div class="bg-light border"&gt;Third item&lt;/div&gt;
&lt;/div&gt;</pre>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/popper.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/main.min.js"></script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化