- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 AdminLTE 3 的模板,我有一个 div,由于 Jquery-UI 可调整大小,我可以增加它的高度,问题是当我尝试增加 div 的大小时,页面不会下降,而我展开 div。
我不想在div上放一个滚动条,我只是想当我增加div的高度时,页面也会用Jquery或CSS自动下降
这是我的代码:
$(document).ready(function(){
$("#main_row_About_results").resizable({
handles: "s"
});
});
body {
margin: 0;
font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: left;
background-color: #ffffff;
}
html,
body,
.wrapper {
min-height: 100%;
overflow-x: hidden;
}
.wrapper {
position: relative;
}
.layout-boxed .wrapper {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.layout-boxed .wrapper, .layout-boxed .wrapper:before {
margin: 0 auto;
max-width: 1250px;
}
@media (min-width: 768px) {
.content-wrapper,
.main-footer,
.main-header {
transition: margin-left 0.3s ease-in-out;
margin-left: 250px;
z-index: 3000;
}
}
@media screen and (min-width: 768px) and (prefers-reduced-motion: reduce) {
.content-wrapper,
.main-footer,
.main-header {
transition: none;
}
}
@media (min-width: 768px) {
.sidebar-collapse .content-wrapper, .sidebar-collapse
.main-footer, .sidebar-collapse
.main-header {
margin-left: 0;
}
}
@media (max-width: 991.98px) {
.content-wrapper, .content-wrapper:before,
.main-footer,
.main-footer:before,
.main-header,
.main-header:before {
margin-left: 0;
}
}
.content-wrapper {
background: #f4f6f9;
}
.content-wrapper > .content {
padding: 0 0.5rem;
}
.main-sidebar {
position: fixed;
top: 0;
left: 0;
bottom: 0;
}
.main-sidebar, .main-sidebar:before {
transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
width: 250px;
}
@media screen and (prefers-reduced-motion: reduce) {
.main-sidebar, .main-sidebar:before {
transition: none;
}
}
.sidebar-collapse .main-sidebar, .sidebar-collapse .main-sidebar:before {
margin-left: -250px;
}
@media (max-width: 991.98px) {
.main-sidebar, .main-sidebar:before {
box-shadow: none !important;
margin-left: -250px;
}
.sidebar-open .main-sidebar, .sidebar-open .main-sidebar:before {
margin-left: 0;
}
}
.main-footer {
padding: 15px;
color: #555;
border-top: 1px solid #dee2e6;
background: #ffffff;
}
.content-header {
padding: 15px 0.5rem;
}
.content-header h1 {
font-size: 1.8rem;
margin: 0;
}
.content-header .breadcrumb {
margin-bottom: 0;
padding: 0;
background: transparent;
line-height: 1.8rem;
}
.hold-transition .content-wrapper,
.hold-transition .main-header,
.hold-transition .main-footer {
transition: none !important;
}
/*
* Component: Main Header
* ----------------------
*/
.main-header {
z-index: 1000;
}
.main-header .navbar-nav .nav-item {
margin: 0;
}
.main-header .nav-link {
position: relative;
height: 2.5rem;
}
.main-header .navbar-nav[class*="-right"] .dropdown-menu {
margin-top: -3px;
right: 0;
left: auto;
}
@media (max-width: 575.98px) {
.main-header .navbar-nav[class*="-right"] .dropdown-menu {
left: 0;
right: auto;
}
}
.navbar-img {
height: 1.25rem;
width: auto;
}
.navbar-badge {
position: absolute;
top: 9px;
right: 5px;
font-size: .6rem;
font-weight: 300;
padding: 2px 4px;
}
.btn-navbar {
border-left-width: 0;
background-color: transparent;
}
.form-control-navbar {
border-right-width: 0;
}
.form-control-navbar + .input-group-append {
margin-left: 0;
}
.form-control-navbar,
.btn-navbar {
transition: none;
}
.navbar-dark .form-control-navbar,
.navbar-dark .btn-navbar {
background-color: rgba(255, 255, 255, 0.2);
border: 0;
}
.navbar-dark .form-control-navbar::placeholder,
.navbar-dark .form-control-navbar + .input-group-append > .btn-navbar {
color: rgba(255, 255, 255, 0.6);
}
.navbar-dark .form-control-navbar :-moz-placeholder {
color: rgba(255, 255, 255, 0.6);
}
.navbar-dark .form-control-navbar ::-moz-placeholder {
color: rgba(255, 255, 255, 0.6);
}
.navbar-dark .form-control-navbar :-ms-input-placeholder {
color: rgba(255, 255, 255, 0.6);
}
.navbar-dark .form-control-navbar:focus,
.navbar-dark .form-control-navbar:focus + .input-group-append .btn-navbar {
border: 0 !important;
background-color: rgba(255, 255, 255, 0.6);
color: #343a40;
}
.navbar-light .form-control-navbar,
.navbar-light .btn-navbar {
background-color: #f2f4f6;
border: 0;
}
.navbar-light .form-control-navbar::placeholder,
.navbar-light .form-control-navbar + .input-group-append > .btn-navbar {
color: rgba(0, 0, 0, 0.6);
}
.navbar-light .form-control-navbar :-moz-placeholder {
color: rgba(0, 0, 0, 0.6);
}
.navbar-light .form-control-navbar ::-moz-placeholder {
color: rgba(0, 0, 0, 0.6);
}
.navbar-light .form-control-navbar :-ms-input-placeholder {
color: rgba(0, 0, 0, 0.6);
}
.navbar-light .form-control-navbar:focus,
.navbar-light .form-control-navbar:focus + .input-group-append .btn-navbar {
border: 0 !important;
background-color: #e9ecef;
color: #343a40;
}
.brand-link {
padding: 0.8125rem 0.5rem;
font-size: 1.25rem;
display: block;
line-height: 1.5;
white-space: nowrap;
}
.brand-link:hover {
color: #ffffff;
text-decoration: none;
}
[class*="sidebar-dark"] .brand-link {
color: rgba(255, 255, 255, 0.8);
border-bottom: 1px solid #4b545c;
}
[class*="sidebar-light"] .brand-link {
color: rgba(0, 0, 0, 0.8);
border-bottom: 1px solid #dee2e6;
}
.brand-image {
float: left;
line-height: .8;
max-height: 34px;
width: auto;
margin-left: .8rem;
margin-right: .5rem;
margin-top: -3px;
}
/**
* Component: Sidebar
* ------------------
*/
.main-sidebar {
z-index: 1100;
height: 100vh;
overflow-y: hidden;
}
.sidebar {
padding-bottom: 0;
padding-top: 0;
padding-left: 0.5rem;
padding-right: 0.5rem;
overflow-y: auto;
height: calc(100% - 4rem);
}
.user-panel {
position: relative;
}
[class*="sidebar-dark"] .user-panel {
border-bottom: 1px solid #4f5962;
}
[class*="sidebar-light"] .user-panel {
border-bottom: 1px solid #dee2e6;
}
.user-panel,
.user-panel .info {
overflow: hidden;
white-space: nowrap;
}
.user-panel .image {
padding-left: 0.8rem;
display: inline-block;
}
.user-panel img {
width: 2.1rem;
height: auto;
}
.user-panel .info {
display: inline-block;
padding: 5px 5px 5px 10px;
}
.user-panel .status,
.user-panel .dropdown-menu {
font-size: 0.875rem;
}
.nav-sidebar .nav-item > .nav-link {
margin-bottom: 0.2rem;
}
.nav-sidebar .nav-item > .nav-link .right {
transition: transform ease-in-out 0.3s;
}
@media screen and (prefers-reduced-motion: reduce) {
.nav-sidebar .nav-item > .nav-link .right {
transition: none;
}
}
.nav-sidebar .nav-link > p > .right {
position: absolute;
right: 1rem;
top: 12px;
}
.nav-sidebar .menu-open > .nav-treeview {
display: block;
}
.nav-sidebar .menu-open > .nav-link .right {
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
}
.nav-sidebar > .nav-item {
margin-bottom: 0;
}
.nav-sidebar > .nav-item .nav-icon {
text-align: center;
width: 1.6rem;
font-size: 1.2rem;
margin-right: .2rem;
}
.nav-sidebar > .nav-item .float-right {
margin-top: 3px;
}
.nav-sidebar .nav-treeview {
display: none;
list-style: none;
padding: 0;
}
.nav-sidebar .nav-treeview > .nav-item > .nav-link > .nav-icon {
width: 1.6rem;
}
.nav-sidebar .nav-header {
font-size: .9rem;
padding: 0.5rem;
}
.nav-sidebar .nav-header:not(:first-of-type) {
padding: 1.7rem 1rem .5rem 1rem;
}
.nav-sidebar .nav-link p {
display: inline-block;
margin: 0;
}
#sidebar-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: none;
background-color: rgba(0, 0, 0, 0.1);
z-index: 1099;
}
#blogArea
{
margin-left: 0;
/*width: 80px !important;*/
min-height: 967px;
max-width: 80px !important;
width: 80px !important;
min-width: 80px !important;
}
#blogAreaContent
{
max-width: 80px !important;
width: 80px !important;
min-width: 80px !important;
}
#main_row_About_results
{
border: 1px solid rgb(112, 113, 124);
border-style: dashed;
}
p:focus, h2:focus, h3:focus, a:focus
{
outline: none !important;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Amin bilding</title>
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font Awesome -->
<link rel="stylesheet" href="plugins/font-awesome/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="dist/css/adminlte.min.css">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<!-- Google Font: Source Sans Pro -->
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
<!-- Navbar -->
<nav class="main-header navbar navbar-expand bg-white navbar-light border-bottom">
<!-- Left navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#"><i class="fa fa-bars"></i></a>
</li>
<li class="nav-item d-none d-sm-inline-block">
<a href="main.php" class="nav-link">Summery</a>
</li>
</ul>
</nav>
<!-- /.navbar -->
<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="main.php" class="brand-link">
<img src="dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
style="opacity: .8">
<span class="brand-text font-weight-light">ADMINS</span>
</a>
<!-- Sidebar -->
<div class="sidebar">
<!-- Sidebar user panel (optional) -->
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
<div class="image">
<img src="dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
</div>
<div class="info">
<a href="#" class="d-block">Administrator Recons</a>
</div>
</div>
<!-- Sidebar Menu -->
<nav class="mt-2">
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
<!-- Add icons to the links using the .nav-icon class
with font-awesome or any other icon font library -->
<li class="nav-item has-treeview">
<a href="#" class="nav-link active">
<i class="nav-icon fa fa-dashboard"></i>
<p>
Dashboard
<i class="right fa fa-angle-left"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="summery.php" class="nav-link">
<i class="fa fa-circle-o nav-icon"></i>
<p>Admin Options</p>
</a>
</li>
</ul>
</li>
</ul>
</nav>
<!-- /.sidebar-menu -->
</div>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row">
<div class="col-sm-6">
<h1 class="m-0 text-dark">Title</h1>
</div><!-- /.col -->
<br><br><br>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right" style="margin-right: 14.6%;"><!-- style="margin-right: 12%;" -->
<li class="breadcrumb-item">My Breadcrum</li>
</ol>
</div><!-- /.col -->
<div class="col-sm-12 col-lg-12 col-md-12 col-xs-12" style="max-width: 92.5%; width: 92.5%;"> <!--style="max-width: 94%; width: 94%;"-->
<h5>Title Item: <b>(*)</b> </h5>
<input type="text" name="blog_nameInfo" id="blog_nameInfo" class="form-control" required>
<br>
<br>
</div>
</div><!-- /.row -->
</div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="row" id="main_row_for_blogs">
<div class="col-lg-12 col-12" style="max-width: 92.5%; width: 92.5%;"><!--style="max-width: 94%; width: 94%;"-->
<div class="card" id="BlogEditorOptions">
<div class="card-header">
<h2>my title card</h2>
</div>
<div class="card-body" id="main_container_blog_section">
<div class="row" id="main_row_About_results" style="display: block; position: relative !important; width: 100%; margin-left: 0px; padding-top: 20px; padding-bottom: 20px;">
<!--this is the div that it's resizable-->
</div>
</div>
</div>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<footer class="main-footer">
<strong>Copyright © 2018 - MyBildingWall</strong>
<div class="float-right d-none d-sm-inline-block">
<b>Version</b> 1.0
</div>
</footer>
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
<!-- jQuery UI 1.11.4 -->
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<!-- Bootstrap 4 -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Slimscroll -->
<script src="plugins/slimScroll/jquery.slimscroll.min.js"></script>
<script src="dist/js/adminlte.js"></script>
</body>
</html>
如您所见,当尝试使用 jquery resizable ui 将 id = main_row_About_results 的 div 放得更高时,正文不会自动下载。我只希望只要我将 div 设置得更高,body 也会随着 div 自动下降(滚动)。现在不会发生这种情况。我该怎么做?
最佳答案
您需要在调整大小时调整 scrollTop。有多种方法可以做到这一点。这是一个例子:
resize: function(event, ui){
var rh = Math.round(ui.element.offset().top + ui.size.height);;
var wh = $(window).height();
var sp = $(document).scrollTop();
var buff = wh + sp - 50;
if (rh > buff) {
$(document).scrollTop(rh - wh + 50);
}
}
计算可调整大小的偏移位置和当前高度可以为我们提供文档中鼠标位置的适当数量。滚动顶部和窗口高度为我们提供了一个很好的比较数字。我们添加了一点缓冲区,50 像素,可以根据需要进行调整。
一旦满足条件,我们使用 .scrollTop()
移动 Scroll Top。
工作示例
$(function() {
$("#main_row_About_results").resizable({
handles: "s",
resize: function(e, ui) {
var rh = Math.round(ui.element.offset().top + ui.size.height);;
var wh = $(window).height();
var sp = $(document).scrollTop();
var buff = wh + sp - 50;
if (rh > buff) {
$(document).scrollTop(rh - wh + 50);
}
}
});
});
body {
margin: 0;
font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: left;
background-color: #ffffff;
}
html,
body,
.wrapper {
min-height: 100%;
overflow-x: hidden;
}
.wrapper {
position: relative;
}
.layout-boxed .wrapper {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.layout-boxed .wrapper,
.layout-boxed .wrapper:before {
margin: 0 auto;
max-width: 1250px;
}
@media (min-width: 768px) {
.content-wrapper,
.main-footer,
.main-header {
transition: margin-left 0.3s ease-in-out;
margin-left: 250px;
z-index: 3000;
}
}
@media screen and (min-width: 768px) and (prefers-reduced-motion: reduce) {
.content-wrapper,
.main-footer,
.main-header {
transition: none;
}
}
@media (min-width: 768px) {
.sidebar-collapse .content-wrapper,
.sidebar-collapse .main-footer,
.sidebar-collapse .main-header {
margin-left: 0;
}
}
@media (max-width: 991.98px) {
.content-wrapper,
.content-wrapper:before,
.main-footer,
.main-footer:before,
.main-header,
.main-header:before {
margin-left: 0;
}
}
.content-wrapper {
background: #f4f6f9;
}
.content-wrapper>.content {
padding: 0 0.5rem;
}
.main-sidebar {
position: fixed;
top: 0;
left: 0;
bottom: 0;
}
.main-sidebar,
.main-sidebar:before {
transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
width: 250px;
}
@media screen and (prefers-reduced-motion: reduce) {
.main-sidebar,
.main-sidebar:before {
transition: none;
}
}
.sidebar-collapse .main-sidebar,
.sidebar-collapse .main-sidebar:before {
margin-left: -250px;
}
@media (max-width: 991.98px) {
.main-sidebar,
.main-sidebar:before {
box-shadow: none !important;
margin-left: -250px;
}
.sidebar-open .main-sidebar,
.sidebar-open .main-sidebar:before {
margin-left: 0;
}
}
.main-footer {
padding: 15px;
color: #555;
border-top: 1px solid #dee2e6;
background: #ffffff;
}
.content-header {
padding: 15px 0.5rem;
}
.content-header h1 {
font-size: 1.8rem;
margin: 0;
}
.content-header .breadcrumb {
margin-bottom: 0;
padding: 0;
background: transparent;
line-height: 1.8rem;
}
.hold-transition .content-wrapper,
.hold-transition .main-header,
.hold-transition .main-footer {
transition: none !important;
}
/*
* Component: Main Header
* ----------------------
*/
.main-header {
z-index: 1000;
}
.main-header .navbar-nav .nav-item {
margin: 0;
}
.main-header .nav-link {
position: relative;
height: 2.5rem;
}
.main-header .navbar-nav[class*="-right"] .dropdown-menu {
margin-top: -3px;
right: 0;
left: auto;
}
@media (max-width: 575.98px) {
.main-header .navbar-nav[class*="-right"] .dropdown-menu {
left: 0;
right: auto;
}
}
.navbar-img {
height: 1.25rem;
width: auto;
}
.navbar-badge {
position: absolute;
top: 9px;
right: 5px;
font-size: .6rem;
font-weight: 300;
padding: 2px 4px;
}
.btn-navbar {
border-left-width: 0;
background-color: transparent;
}
.form-control-navbar {
border-right-width: 0;
}
.form-control-navbar+.input-group-append {
margin-left: 0;
}
.form-control-navbar,
.btn-navbar {
transition: none;
}
.navbar-dark .form-control-navbar,
.navbar-dark .btn-navbar {
background-color: rgba(255, 255, 255, 0.2);
border: 0;
}
.navbar-dark .form-control-navbar::placeholder,
.navbar-dark .form-control-navbar+.input-group-append>.btn-navbar {
color: rgba(255, 255, 255, 0.6);
}
.navbar-dark .form-control-navbar :-moz-placeholder {
color: rgba(255, 255, 255, 0.6);
}
.navbar-dark .form-control-navbar ::-moz-placeholder {
color: rgba(255, 255, 255, 0.6);
}
.navbar-dark .form-control-navbar :-ms-input-placeholder {
color: rgba(255, 255, 255, 0.6);
}
.navbar-dark .form-control-navbar:focus,
.navbar-dark .form-control-navbar:focus+.input-group-append .btn-navbar {
border: 0 !important;
background-color: rgba(255, 255, 255, 0.6);
color: #343a40;
}
.navbar-light .form-control-navbar,
.navbar-light .btn-navbar {
background-color: #f2f4f6;
border: 0;
}
.navbar-light .form-control-navbar::placeholder,
.navbar-light .form-control-navbar+.input-group-append>.btn-navbar {
color: rgba(0, 0, 0, 0.6);
}
.navbar-light .form-control-navbar :-moz-placeholder {
color: rgba(0, 0, 0, 0.6);
}
.navbar-light .form-control-navbar ::-moz-placeholder {
color: rgba(0, 0, 0, 0.6);
}
.navbar-light .form-control-navbar :-ms-input-placeholder {
color: rgba(0, 0, 0, 0.6);
}
.navbar-light .form-control-navbar:focus,
.navbar-light .form-control-navbar:focus+.input-group-append .btn-navbar {
border: 0 !important;
background-color: #e9ecef;
color: #343a40;
}
.brand-link {
padding: 0.8125rem 0.5rem;
font-size: 1.25rem;
display: block;
line-height: 1.5;
white-space: nowrap;
}
.brand-link:hover {
color: #ffffff;
text-decoration: none;
}
[class*="sidebar-dark"] .brand-link {
color: rgba(255, 255, 255, 0.8);
border-bottom: 1px solid #4b545c;
}
[class*="sidebar-light"] .brand-link {
color: rgba(0, 0, 0, 0.8);
border-bottom: 1px solid #dee2e6;
}
.brand-image {
float: left;
line-height: .8;
max-height: 34px;
width: auto;
margin-left: .8rem;
margin-right: .5rem;
margin-top: -3px;
}
/**
* Component: Sidebar
* ------------------
*/
.main-sidebar {
z-index: 1100;
height: 100vh;
overflow-y: hidden;
}
.sidebar {
padding-bottom: 0;
padding-top: 0;
padding-left: 0.5rem;
padding-right: 0.5rem;
overflow-y: auto;
height: calc(100% - 4rem);
}
.user-panel {
position: relative;
}
[class*="sidebar-dark"] .user-panel {
border-bottom: 1px solid #4f5962;
}
[class*="sidebar-light"] .user-panel {
border-bottom: 1px solid #dee2e6;
}
.user-panel,
.user-panel .info {
overflow: hidden;
white-space: nowrap;
}
.user-panel .image {
padding-left: 0.8rem;
display: inline-block;
}
.user-panel img {
width: 2.1rem;
height: auto;
}
.user-panel .info {
display: inline-block;
padding: 5px 5px 5px 10px;
}
.user-panel .status,
.user-panel .dropdown-menu {
font-size: 0.875rem;
}
.nav-sidebar .nav-item>.nav-link {
margin-bottom: 0.2rem;
}
.nav-sidebar .nav-item>.nav-link .right {
transition: transform ease-in-out 0.3s;
}
@media screen and (prefers-reduced-motion: reduce) {
.nav-sidebar .nav-item>.nav-link .right {
transition: none;
}
}
.nav-sidebar .nav-link>p>.right {
position: absolute;
right: 1rem;
top: 12px;
}
.nav-sidebar .menu-open>.nav-treeview {
display: block;
}
.nav-sidebar .menu-open>.nav-link .right {
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
}
.nav-sidebar>.nav-item {
margin-bottom: 0;
}
.nav-sidebar>.nav-item .nav-icon {
text-align: center;
width: 1.6rem;
font-size: 1.2rem;
margin-right: .2rem;
}
.nav-sidebar>.nav-item .float-right {
margin-top: 3px;
}
.nav-sidebar .nav-treeview {
display: none;
list-style: none;
padding: 0;
}
.nav-sidebar .nav-treeview>.nav-item>.nav-link>.nav-icon {
width: 1.6rem;
}
.nav-sidebar .nav-header {
font-size: .9rem;
padding: 0.5rem;
}
.nav-sidebar .nav-header:not(:first-of-type) {
padding: 1.7rem 1rem .5rem 1rem;
}
.nav-sidebar .nav-link p {
display: inline-block;
margin: 0;
}
#sidebar-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: none;
background-color: rgba(0, 0, 0, 0.1);
z-index: 1099;
}
#blogArea {
margin-left: 0;
/*width: 80px !important;*/
min-height: 967px;
max-width: 80px !important;
width: 80px !important;
min-width: 80px !important;
}
#blogAreaContent {
max-width: 80px !important;
width: 80px !important;
min-width: 80px !important;
}
#main_row_About_results {
border: 1px solid rgb(112, 113, 124);
border-style: dashed;
}
p:focus,
h2:focus,
h3:focus,
a:focus {
outline: none !important;
}
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<!-- Ionicons -->
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="dist/css/adminlte.min.css">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<!-- Google Font: Source Sans Pro -->
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
<div class="wrapper">
<!-- Navbar -->
<nav class="main-header navbar navbar-expand bg-white navbar-light border-bottom">
<!-- Left navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#"><i class="fa fa-bars"></i></a>
</li>
<li class="nav-item d-none d-sm-inline-block">
<a href="main.php" class="nav-link">Summery</a>
</li>
</ul>
</nav>
<!-- /.navbar -->
<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="main.php" class="brand-link">
<img src="dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
<span class="brand-text font-weight-light">ADMINS</span>
</a>
<!-- Sidebar -->
<div class="sidebar">
<!-- Sidebar user panel (optional) -->
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
<div class="image">
<img src="dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
</div>
<div class="info">
<a href="#" class="d-block">Administrator Recons</a>
</div>
</div>
<!-- Sidebar Menu -->
<nav class="mt-2">
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
<!-- Add icons to the links using the .nav-icon class
with font-awesome or any other icon font library -->
<li class="nav-item has-treeview">
<a href="#" class="nav-link active">
<i class="nav-icon fa fa-dashboard"></i>
<p>
Dashboard
<i class="right fa fa-angle-left"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="summery.php" class="nav-link">
<i class="fa fa-circle-o nav-icon"></i>
<p>Admin Options</p>
</a>
</li>
</ul>
</li>
</ul>
</nav>
<!-- /.sidebar-menu -->
</div>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row">
<div class="col-sm-6">
<h1 class="m-0 text-dark">Title</h1>
</div>
<!-- /.col -->
<br><br><br>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right" style="margin-right: 14.6%;">
<!-- style="margin-right: 12%;" -->
<li class="breadcrumb-item">My Breadcrum</li>
</ol>
</div>
<!-- /.col -->
<div class="col-sm-12 col-lg-12 col-md-12 col-xs-12" style="max-width: 92.5%; width: 92.5%;">
<!--style="max-width: 94%; width: 94%;"-->
<h5>Title Item: <b>(*)</b> </h5>
<input type="text" name="blog_nameInfo" id="blog_nameInfo" class="form-control" required>
<br>
<br>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</div>
<!-- /.content-header -->
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="row" id="main_row_for_blogs">
<div class="col-lg-12 col-12" style="max-width: 92.5%; width: 92.5%;">
<!--style="max-width: 94%; width: 94%;"-->
<div class="card" id="BlogEditorOptions">
<div class="card-header">
<h2>my title card</h2>
</div>
<div class="card-body" id="main_container_blog_section">
<div class="row" id="main_row_About_results" style="display: block; position: relative !important; width: 100%; margin-left: 0px; padding-top: 20px; padding-bottom: 20px;">
<!--this is the div that it's resizable-->
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<footer class="main-footer">
<strong>Copyright © 2018 - MyBildingWall</strong>
<div class="float-right d-none d-sm-inline-block">
<b>Version</b> 1.0
</div>
</footer>
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<!-- Bootstrap 4 -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Slimscroll -->
<script src="plugins/slimScroll/jquery.slimscroll.min.js"></script>
<script src="dist/js/adminlte.js"></script>
希望对您有所帮助。
关于php - 当我使用 Resizable Jquery 增加 div 的大小时如何滚动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54053607/
在带有 jQuery 的 CoffeeScript 中,以下语句有什么区别吗? jQuery ($) -> jQuery -> $ - > 最佳答案 第一个与其他两个不同,就像在纯 JavaScr
已关闭。这个问题是 off-topic 。目前不接受答案。 想要改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 已关闭13 年前。 Improve th
就目前情况而言,这个问题不太适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、民意调查或扩展讨论。如果您觉得这个问题可以改进并可能重新开放,visit
这个问题可能听起来很愚蠢,但请耐心等待,因为我完全是初学者。我下载了两个 jQuery 版本,开发版本和生产版本。我想知道作为学习 jQuery 的初学者,什么更适合我。 最佳答案 如果您对 jQue
The documentation说要使用 1.6.4,但我们现在已经升级到 1.7.2。 我可以在 jQuery Mobile 中使用最新版本的 jQuery 吗? 最佳答案 您当然可以,但如果您想
我在这里看到这个不错的 jquery 插件:prettyphoto jquery lightbox有没有办法只用一个简单的jquery来实现这样的效果。 我只需要弹出和内联内容。你的回复有很大帮助。
很明显我正在尝试做一些 jQuery 不喜欢的事情。 我正在使用 javascript 上传图片。每次上传图片时,我都希望它可见,并附加一个有效的删除脚本。显示工作正常,删除则不然,因为当我用 fir
这两个哪个是正确的? jQuery('someclass').click(function() { alert("I've been clicked!"); }); 或 jQuery('somec
我正在寻找一个具有以下格式的插件 if (jQuery)(function ($) { -- plugin code -- })(jQuery); 我明白 (function ($)
关闭。这个问题是opinion-based 。目前不接受答案。 想要改进这个问题吗?更新问题,以便 editing this post 可以用事实和引文来回答它。 . 已关闭10 年前。 Improv
我知道这个问题已经被问过几次了,但想知道您是否可以帮助我解决这个问题。 背景:我尝试创建一个使用 Ajax 提交的表单(jQuery 表单提交)。我已经工作得很好,然后我想在表单上得到验证。我可以使用
我正在使用无处不在的jquery validate plugin用于表单验证。它支持使用metadata plugin用于向表单元素添加验证规则。 我正在使用此功能。当验证查找这些规则时,它会对元素进
我更喜欢为我一直在开发的网络社区添加实用的视觉效果,但随着事情开始堆积,我担心加载时间。 拥有用户真的更快吗加载(希望是缓存的)副本来自 Google 存储库的 jquery? 是否使用 jQuery
这个问题已经有答案了: Slide right to left? (17 个回答) 已关闭 9 年前。 你能告诉我有没有办法在 jQuery 中左右滑动而不使用 jQuery UI 和 jQuery
我如何找出最适合某种情况的方法?任何人都可以提供一些示例来了解功能和性能方面的差异吗? 最佳答案 XMLHttpRequest 是原始浏览器对象,jQuery 将其包装成一种更有用和简化的形式以及跨浏
运行时 php bin/console oro:assets:build ,我有 11 个这样的错误: ERROR in ../node_modules/jquery-form/src/jquery.
我试图找到 jQuery.ajax() 在源代码中的定义位置。但是,使用 grep 似乎不起作用。 在哪里? 谢谢。 > grep jQuery.ajax src/* src/ajax.js:// B
$.fn.sortByDepth = function() { var ar = []; var result = $([]); $(this).each(function()
我的页面上有多个图像。为了检测损坏的图像,我使用了在 SO 上找到的这个。 $('.imgRot').one('error',function(){ $(this).attr('src','b
我在理解 $ 符号作为 jQuery 函数的别名时遇到了一些麻烦,尤其是在插件中。你能解释一下 jQuery 如何实现这种别名:它如何定义 '$' 作为 jQuery 函数的别名?这是第一个问题。 其
我是一名优秀的程序员,十分优秀!