Skip to content

Commit

Permalink
修复低版本IOS不能滑动问题
Browse files Browse the repository at this point in the history
  • Loading branch information
99php committed May 13, 2020
1 parent 33281ec commit fdbbf9b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions css/layuimini.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,21 @@
padding: 0px;
}

/**
todo 修复低版本IOS不能滑动问题, 但还是有问题, 低版本IOS部分情况下子页面无法自适应
*/
.layuimini-tab .layui-tab-content .layui-tab-item{
-webkit-overflow-scrolling: touch;
overflow: scroll;
width:100%;
height:100%;
}

.layuimini-tab .layui-tab-content .layui-tab-item iframe {
height: 100%;
width: 100%;
}

.layuimini-tab .layui-tab-title {
border: none;
border: 1px solid whitesmoke;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<meta name="format-detection" content="telephone=no">
<link rel="icon" href="images/favicon.ico">
<link rel="stylesheet" href="lib/layui-v2.5.5/css/layui.css" media="all">
<link rel="stylesheet" href="css/layuimini.css?v=2.0.4" media="all">
<link rel="stylesheet" href="css/layuimini.css?v=2.0.4.2" media="all">
<link rel="stylesheet" href="css/themes/default.css" media="all">
<link rel="stylesheet" href="lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
<!--[if lt IE 9]>
Expand Down

0 comments on commit fdbbf9b

Please sign in to comment.