1 Star 0 Fork 14

dizhu/Light Year Admin Using v5 For Example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
lyear_layout_widgets_3.html 6.70 KB
一键复制 编辑 原始数据 按行查看 历史
笔下光年 提交于 2022-12-10 17:27 . feat:代码上传
<!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 V4)后台管理系统模板</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">
<style>
/* 默认的搜索框 */
.lyear-search {
position: relative;
z-index: 0;
display: -webkit-inline-box;
display: inline-flex;
}
.lyear-search input {
width: 300px;
padding-left: 35px;
-webkit-transition: .5s;
transition: .5s;
}
.lyear-search.lyear-search-right input {
padding-left: 12px;
padding-right: 35px;
}
.lyear-search::before {
content: "\f0349";
font-family: "Material Design Icons";
font-size: 24px;
position: absolute;
z-index: 99;
top: 0px;
left: 0px;
color: rgba(77,82,89,0.4);
width: 38px;
height: 38px;
text-align: center;
cursor: text;
}
.lyear-search.lyear-search-right::before {
left: auto;
right: 0px;
}
.lyear-search.lyear-search-rounder input {
border-radius: 19px
}
.lyear-search.lyear-search-rounder .btn:last-child {
border-top-right-radius: 19px;
border-bottom-right-radius: 19px;
}
.lyear-search.lyear-search-circle::before {
z-index: -1;
}
.lyear-search.lyear-search-circle input {
background-color: transparent;
-webkit-border-radius: 19px;
border-radius: 19px;
width: 38px;
padding-right: 0px;
padding-left: 38px;
}
.lyear-search.lyear-search-circle input:focus {
width: 100%;
padding-right: 12px;
}
.lyear-search.lyear-search-circle.lyear-search-right input:focus {
width: 300px;
padding-left: 12px;
}
.lyear-search.lyear-search-noicon::before {
content: '';
}
.lyear-search.lyear-search-noicon .btn {
padding-top: 2px;
padding-bottom: 3px;
}
.lyear-search.lyear-search-noicon .btn .mdi {
line-height: 29px;
font-size: 20px;
vertical-align: top;
}
.lyear-search.lyear-search-noicon.lyear-search-left input {
padding-left: 12px;
}
.lyear-search.lyear-search-noicon.lyear-search-right input {
padding-right: 12px;
}
</style>
</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>搜索框布局演示,布局来源于网络,大家看需要使用,O(∩_∩)O。</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header"><div class="card-title">搜索框</div></div>
<div class="card-body">
<p>图标默认左侧</p>
<div class="mb-3">
<form class="lyear-search">
<input type="text" name="keywords" class="form-control" placeholder="请输入搜索的关键词...">
</form>
</div>
<p>右侧图标</p>
<div class="mb-3">
<form class="lyear-search lyear-search-right">
<input type="text" name="keywords" class="form-control" placeholder="请输入搜索的关键词...">
</form>
</div>
<p>圆形样式</p>
<div class="mb-3">
<form class="lyear-search lyear-search-right lyear-search-rounder w-200-px">
<input type="text" name="keywords" class="form-control" placeholder="请输入搜索的关键词...">
</form>
</div>
<p>可点击按钮</p>
<div class="mb-3">
<form class="lyear-search lyear-search-left">
<div class="input-group">
<input type="text" name="keywords" class="form-control" placeholder="请输入搜索的关键词...">
<button type="button" class="btn btn-default">搜索</button>
</div>
</form>
</div>
<p>圆形可点击按钮</p>
<div class="mb-3">
<form class="lyear-search lyear-search-left lyear-search-rounder">
<div class="input-group">
<input type="text" name="keywords" class="form-control" placeholder="请输入搜索的关键词...">
<button type="button" class="btn btn-default">搜索</button>
</div>
</form>
</div>
<p>图标放按钮上</p>
<div class="mb-3">
<form class="lyear-search lyear-search-left lyear-search-noicon">
<div class="input-group">
<input type="text" name="keywords" class="form-control" placeholder="请输入搜索的关键词...">
<div class="input-group-append">
<button type="button" class="btn btn-default"><i class="mdi mdi-magnify"></i></button>
</div>
</div>
</form>
</div>
<p>可伸缩的搜索框(这里需要禁止输入框提示历史记录 <code>autocomplete="off"</code>)</p>
<div class="mb-3">
<form class="lyear-search lyear-search-left lyear-search-circle">
<input type="text" name="keywords" class="form-control" placeholder="请输入搜索的关键词..." autocomplete="off">
</form>
</div>
<div class="mb-3 text-end">
<form class="lyear-search lyear-search-right lyear-search-circle">
<input type="text" name="keywords" class="form-control" placeholder="请输入搜索的关键词..." autocomplete="off">
</form>
</div>
</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 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/johnnyhg/light-year-admin-using-v5-for-example.git
git@gitee.com:johnnyhg/light-year-admin-using-v5-for-example.git
johnnyhg
light-year-admin-using-v5-for-example
Light Year Admin Using v5 For Example
master

搜索帮助