/* pages/codeOnline/codeOnline.wxss */ .container { position: relative; width: 100vw; height: 90vh; /* background: rgba(255, 255, 255, 0.5); */ /* background-image: url('https://yongma16.xyz/media/editor/wallhaven-3kqv3y_20220724071651129556.jpg'); background-repeat: no-repeat; background-size: cover; */ background: linear-gradient(to right, rgba(1, 41, 116, 0.1) 1px, transparent 1px), linear-gradient(to bottom, rgba(1, 41, 116, 0.1) 1px, transparent 1px); background-repeat: repeat; background-size: 10px 10px; /* fallback for old browsers */ overflow: hidden; } .container-header { background: rgba(16, 116, 187); width: 100%; text-align: center; color: #ffffff; height: 40px; line-height: 40px; font-weight: bold; } .container-box{ position: relative; background-color: rgba(255,255,255,.5); width: 90%; height: calc( 100vh - 100px); } .container-box-show{ position: relative; width: 100%; height: 150px; text-align: left; } .container-box-show-btn{ margin-top: 5px; position: relative; text-align: left; } .format-btn{ position: relative; margin-left: 10px; } .container-box-edit{ position: relative; width: 100%; height: 50%; background: rgba(255, 255, 255, .2); border: 1px solid rgb(8, 183, 252); box-shadow: 0 2rpx 5rpx 5rpx rgba(255, 255, 255, .2); } .section{ position: relative; width: 80%; color: #333; } .container-html{ position: relative; height: 100px; width: 100%; color: #333; user-select: text; overflow: auto; border: 1px solid rgb(8, 183, 252); }