html,body{ margin: 0; width: 100%; height: 100%; background: linear-gradient(to bottom right, blue, green); } .module-content{ padding-top: 100px; width: 80%; min-width: 750px; max-width: 1200px; margin:0 auto; } #cssCode,#newCssCode{ width: 100%; height: 200px; padding: 10px; border-radius: 10px; font-size: 14px; resize: none; outline: none; } .btn{ display: inline-block; width: 100px; height: 40px; line-height: 40px; text-align: center; margin-right: 10px; margin-top: 20px; margin-bottom: 20px; cursor: pointer; border-radius: 5px; border: 1px solid #999; color: #fff; font-size: 14px; background: linear-gradient(to bottom right, lightblue, lightgreen); transition: all 1s; } .btn:hover{ background: linear-gradient(to bottom right, lightgreen, lightyellow); } 压缩代码 格式(多行) 格式(单行) 还原代码
formatBtn(param)直接调用这个函数,当参数param为0的时候是压缩代码,当参数param为1的时候是格式多行,当参数param为2的时候是格式化为单行,当参数param为3的时候是还原代码。
〒_〒 居然一个评论都没有……
牛币获取:签到、评论、充值 » 在线充值(10牛币=1元)