国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發(fā) > CSS > 正文

css代碼格式化清理工具

2024-07-11 09:00:53
字體:
供稿:網(wǎng)友

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"><head>


<title> CSS 代碼格式化工具 </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
    a {color:blue; font-size:12px}
    textarea {width:100%; height:300px; display:block; margin:10px 0; font-size:12px}
    input {font-size:12px}
</style>
<script type="text/javascript">
<!--
    function formatCSS(n){
        var c = document.getElementById("abc");
        var d = document.getElementById("def");
        var v = c.value;
        if (n==1){
            d.value = v.replace(/rn/g,"").replace(/}/g,"}rn").replace(/*//g,"*/rn");
        }
        if (n==2){
            d.value = v.replace(/rn/g,"").replace(/}/g,"}rn").replace(/s*;s*/g,";").replace(/;/g,";rnt").replace(/{/g,"{rnt").replace(/}/g,"rn}").replace(/*//g,"*/rn");
        }
        if (n==3){
            c.value = d.value = "";
        }
    }
//-->
</script>
<style type="text/css" charset="utf-8">/* See license.txt for terms of usage */

.firebugHighlight {
    z-index: 2147483647;
    position: absolute;
    background-color: #3875d7;
}

.firebugLayoutBoxParent {
    z-index: 2147483647;
    position: absolute;
    background-color: transparent;
    border-right: 1px dashed #BBBBBB;
    border-bottom: 1px dashed #BBBBBB;
}

.firebugRulerH {
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 14px;
    background: url(Chrome://firebug/skin/rulerH.png) repeat-x;
    border-top: 1px solid #BBBBBB;
    border-right: 1px dashed #BBBBBB;
    border-bottom: 1px solid #000000;
}

.firebugRulerV {
    position: absolute;
    top: 0;
    left: -15px;
    width: 14px;
    height: 100%;
    background: url(chrome://firebug/skin/rulerV.png) repeat-y;
    border-left: 1px solid #BBBBBB;
    border-right: 1px solid #000000;
    border-bottom: 1px dashed #BBBBBB;
}

.overflowRulerX > .firebugRulerV {
    left: 0;
}

.overflowRulerY > .firebugRulerH {
    top: 0;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

.firebugLayoutBoxOffset {
    z-index: 2147483647;
    position: absolute;
    opacity: 0.8;
}

.firebugLayoutBoxMargin {
    background-color: #EDFF64;
}

.firebugLayoutBoxBorder {
    background-color: #666666;
}

.firebugLayoutBoxPadding {
    background-color: SlateBlue;
}

.firebugLayoutBoxContent {
    background-color: SkyBlue;
}

/*.firebugHighlightGroup .firebugLayoutBox {
    background-color: transparent;
}

.firebugHighlightBox {
    background-color: Blue !important;
}*/

.firebugLayoutLine {
    z-index: 2147483647;
    background-color: #000000;
    opacity: 0.4;
}

.firebugLayoutLineLeft,
.firebugLayoutLineRight {
    position: fixed;
    width: 1px;
    height: 100%;
}

.firebugLayoutLineTop,
.firebugLayoutLineBottom {
    position: absolute;
    width: 100%;
    height: 1px;
}

.firebugLayoutLineTop {
    margin-top: -1px;
    border-top: 1px solid #999999;
}

.firebugLayoutLineRight {
    border-right: 1px solid #999999;
}

.firebugLayoutLineBottom {
    border-bottom: 1px solid #999999;
}

.firebugLayoutLineLeft {
    margin-left: -1px;
    border-left: 1px solid #999999;
}
</style></head><body onload="document.getElementById('abc').focus()">
<h1>CSS 代碼格式化工具</h1>
<textarea id="abc" cols="150" rows="20" wrap="off" title="在這里輸入CSS代碼"></textarea>

<input value=" 橫排 " onclick="formatCSS(1)" type="button">
<input value=" 豎排 " onclick="formatCSS(2)" type="button">
<input value=" 清空 " onclick="formatCSS(3)" type="button">

<textarea id="def" cols="150" rows="20" wrap="off" title="這里將輸出CSS代碼"></textarea>

<a href="http://www.devdao.com" target="_blank">http://www.devdao.com</a>
</body></html>

發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 肇庆市| 越西县| 靖边县| 平邑县| 明光市| 忻州市| 谢通门县| 垣曲县| 通许县| 赤壁市| 芦溪县| 任丘市| 香河县| 三门峡市| 如东县| 旬邑县| 天全县| 黑山县| 丰顺县| 罗江县| 从江县| 清河县| 井陉县| 尉犁县| 栖霞市| 凌源市| 吴旗县| 海南省| 诏安县| 曲麻莱县| 渭南市| 逊克县| 神木县| 甘德县| 无为县| 辽阳县| 兰州市| 新兴县| 北安市| 江北区| 长子县|