Tip: you can modify some code before running
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>Style sheet (CSS) format arrangement and compression</title> <style type="text/css">Html, body, form, fieldset, textarea {height: 100%; margin: 0; padding: 0; border: 0; font-size: 10pt; background: # eee ;} form {margin: 0 1%; overflow: hidden;} legend {line-height: 3em; font-weight: bolder;} button {float: left; margin: 1% 1% 0 0; cursor: pointer;} textarea {width: 100%; height: 20em; border: 1px solid # ccc; display: block; background: # fff ;}</style> </head> <body> <form action="" onsubmit="return false"><fieldset> <legend>Style sheet (CSS) format arrangement and compression</legend> <textarea name="" rows="" cols="" id="codeText">Body * {font-size: 10pt;}/* ss sda */p {clear: left; padding: 5px 10px;} td, fieldset {padding: 10px ;} textarea {width: 90%; height: 10em ;} Compressed code Format (multiple rows) Format (single row) Restore code
Tip: you can modify some code before running