.white-space-pre-wrap { white-space: pre-wrap; } .white-space-pre-line { white-space: pre-line; } /*---------------------------------------------------------------------------*/ * { margin: 0; padding: 0 } html { height: 100% } h2 { color: #2F8D46; } .close { background-color: lightcoral; color: white; } .scroll { margin: 4px, 4px; padding: 4px; background-color: white; /*width: 500px;*/ height: 400px; overflow-x: scroll; overflow-y: scroll; text-align: left; } .subject3 { width: 220px; height: 50px; border-radius: 20px; background: #454545; font-size: 16px; font-family: 'Global Monospace'; font-weight: bold; text-align: center; line-height: 50px; position: fixed; left: calc(50% - 110px); top: calc(50% - 25px); color: #fff; } #form { text-align: center; position: relative; margin-top: 20px } #form fieldset { background: white; border: 0 none; border-radius: 0.5rem; box-sizing: border-box; width: 100%; margin: 0; padding-bottom: 20px; position: relative } .finish { text-align: center } #form fieldset:not(:first-of-type) { display: none } #form .previous-step, .next-step { width: 100px; font-weight: bold; color: white; border: 0 none; border-radius: 0px; cursor: pointer; padding: 10px 5px; margin: 10px 5px 10px 0px; float: right } .form, .previous-step { background: #616161; } .form, .next-step { background: #2F8D46; } #form .previous-step:hover, #form .previous-step:focus { background-color: #000000 } #form .next-step:hover, #form .next-step:focus { background-color: #2F8D46 } .text { color: #2F8D46; font-weight: normal } #progressbar { margin-bottom: 30px; overflow: hidden; color: lightgrey } #progressbar .active { color: #2F8D46 } #progressbar li { list-style-type: none; font-size: 15px; width: 25%; float: left; position: relative; font-weight: 400 } #progressbar #step1:before { content: "1" } #progressbar #step2:before { content: "2" } #progressbar #step3:before { content: "3" } #progressbar #step4:before { content: "4" } #progressbar li:before { width: 50px; height: 50px; line-height: 45px; display: block; font-size: 20px; color: #ffffff; background: lightgray; border-radius: 50%; margin: 0 auto 10px auto; padding: 2px } #progressbar li:after { content: ''; width: 100%; height: 2px; background: lightgray; position: absolute; left: 0; top: 25px; z-index: -1 } #progressbar li.active:before, #progressbar li.active:after { background: #2F8D46 } .progress { height: 20px } .progress-bar { background-color: #2F8D46 } .subject { color: purple; border: 2px solid green; padding: 20px; height: 200px; width: 400px; width: 340px; position: absolute; /*絕對位置*/ top: 50%; /*從上面開始算,下推 50% (一半) 的位置*/ left: 50%; /*從左邊開始算,右推 50% (一半) 的位置*/ margin-top: -100px; /*高度的一半*/ margin-left: -200px; /*寬度的一半*/ } /* .CSS5-left { float: left; border: 0px solid #F00 } */