css代碼格式化清理工具
來源:易賢網(wǎng) 閱讀:984 次 日期:2015-03-02 11:32:47
溫馨提示:易賢網(wǎng)小編為您整理了“css代碼格式化清理工具”,方便廣大網(wǎng)友查閱!

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns=">>

<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="" target="_blank">http://www.devdao.com</a>

</body></html>

更多信息請查看IT技術(shù)專欄

更多信息請查看網(wǎng)頁制作
上一篇:css的鏈接美化
易賢網(wǎng)手機網(wǎng)站地址:css代碼格式化清理工具
由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復僅供參考,敬請考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇剩?/div>

2025國考·省考課程試聽報名

  • 報班類型
  • 姓名
  • 手機號
  • 驗證碼
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 加入群交流 | 手機站點 | 投訴建議
工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關(guān)注公眾號:hfpxwx
咨詢QQ:526150442(9:00—18:00)版權(quán)所有:易賢網(wǎng)