html, body { width: 100%; height: 100%; overflow: hidden; text-align: left; margin: 0px; padding: 0px; font-family: Segoe UI, SegoeUI, Segoe WP, Helvetica Neue, Helvetica, Tahoma, Arial, sans-serif; } header { height: 50px; line-height: 50px; width: 100%; font-size: 18px; text-align: left; text-indent: 20px; background-color: #ccc; } section { height: calc(100% - 80px); width: 100%; } menu { width: 300px; height: 100%; float: left; overflow-y: auto; overflow-x: hidden; box-shadow: 3px 0px 3px #ccc; } menu, menu * { margin: 0px; padding: 0px; } menu .tit { font-size: 16px; height: 40px; line-height: 40px; padding-left: 10px; font-weight: bold; } menu .tit i { font-size: 18px; margin-right: 5px; } menu .tit .searchbox { font-size: 22px; float: right; width: 170px; height: 100%; position: relative; } menu .tit .searchbox input { box-shadow: 0px 0px 2px #333 inset; border-radius: 5px; height: 26px; width: 120px; top: 6px; position: absolute; z-index: 1; padding: 2px 30px 2px 10px; } menu .tit .searchbox i { font-size: 22px; position: absolute; right: 10px; top: 10px; z-index: 2; color: #999; } #menu {} #menu .methods { --display: none; margin-left: 10px; } #menu .classname { background-color: #eee; line-height: 35px; padding-left: 15px; cursor: pointer; position: relative; --transform: rotate(-3deg); transition: background-color 0.5s; padding-right: 30px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #menu .classname:hover { background-color: #ccc; transition: background-color 0.5s; } #menu .classname i { position: absolute; right: 10px; top: 12px; display: block; } #menu .classname span { font-size: 12px; color: #999; } .methods>dd { font-size: 14px; margin-bottom: 5px; padding-left: 20px; cursor: pointer; --transform: rotate(-3deg); transition: background-color 0.2s; } .methods>dt { font-size: 12px; color: #999; padding-left: 10px; padding-right: 10px; line-height: 30px; } .methods>dd:hover { background-color: rgb(222, 255, 179); transition: background-color 0.5s; } dd.noapi span { font-size:16px; margin:10px; color:#999; } .methods>dd>div { font-size: 13px; color: #999; margin-left: 22px; word-wrap: break-word; word-break: break-all; padding-right: 20px; } context { width: calc(100% - 300px); height: 100%; float: left; overflow-y: auto; } .homepage h1 { font-size: 25px; margin:20px 10px 10px 40px; } .homepage p { padding: 10px 10px 0 10px; margin: 0px; font-size: 16px; line-height: 25px; text-indent: 30px; } /*右侧方法详情的区域*/ .method { padding: 20px; } .method>* { display: block; } .method * { font-size: 16px; line-height: 30px; } .method attr i { font-style:normal; font-size: 11px; } .method name { font-weight: bold; font-size: 30px; word-wrap: break-word; padding: 2px 10px 2px 0; } .method name para{ font-size: 16px; font-weight: normal; margin-left: 10px; } .method fullname { word-wrap: break-word; word-break: break-all; } .method table { width: calc(100% - 5px); } .method table th { font-weight: normal; background-color: #eee; font-size: 12px; } .method table input{ height: 22px; width: 100px; --border: 1px solid #999; box-shadow: 0px 0px 2px #333 inset; border-radius: 2px; } .method remarks b{ display: block; float: left; width: 50px; } .method remarks div{ display: block; float: right; width: calc(100% - 50px); } .test-tit { height: 40px; line-height: 40px; background: #ccc; width: 100%; text-indent: 20px; position: relative; } .test-tit select{ height: 30px; min-width: 60px; margin-right: 10px; } .test-tit button{ height: 30px; width: 90px; margin-left: 10px; border-radius: 5px; background-color:#eee; cursor: pointer; } .test-tit button:hover{ background-color:rgb(166, 228, 163); box-shadow: 1px 1px 1px #999; } .test-tit button:first-child{ margin-right: 50px; } fieldset{ position: relative; } #testarea{ width: calc(100% - 60px); display: table; word-wrap: break-word; word-break:break-all; padding: 10px 30px 10px 30px; margin: 0px; } #testarea pre{ margin: 0px 0px 10px 0px; width: calc(100% - 40px); font-size: 14px; line-height: 20px; padding: 20px; background-color: rgb(240, 243, 215); word-wrap: break-word; word-break: break-all; border:1px solid #ccc; position: relative; } #testarea fieldset { margin: 0px; padding: 0px; margin-bottom: 20px; width:100%; } #testresult:before{ content:"测试查询的返回结果:"; display: block; position: absolute; top:0px; left:10px; color: #666; font-size: 12px; } footer { height: 30px; line-height: 30px; text-indent: 10px; font-size: 16px; background: #ccc; position: absolute; bottom: 0px; width: 100%; }