1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-27 09:38:28 +08:00
This commit is contained in:
harveyshao 2021-06-03 16:35:30 +08:00
parent d16da3deff
commit dbe7d41949
2 changed files with 4 additions and 1 deletions

View File

@ -486,7 +486,7 @@ Volcanos("onlayout", {help: "页面布局", list: [], _init: function(can, targe
}
if (left+target.offsetWidth>window.innerWidth) { left = window.innerWidth - target.offsetWidth }
if (top+target.offsetHeight>window.innerHeight) { top = window.innerHeight - target.offsetHeight }
if (top+target.offsetHeight>window.innerHeight-100) { top = window.innerHeight - target.offsetHeight - 100 }
var layout = {left: left, top: top}
can.page.Modify(can, target, {style: layout})

View File

@ -101,6 +101,9 @@ input[name=cmd] {
input[name=date] {
width:150px;
}
input[name=text] {
width:160px;
}
input[type=text] {
box-shadow: 4px 4px 10px 1px #626bd0;
background-color:cyan; color:black;