CSS Code復(fù)制內(nèi)容到剪貼板
/*<pre>:定義預(yù)格式化文本;<code>:用于表示計(jì)算機(jī)源代碼的文本內(nèi)容;
*<fieldset>:可將表單內(nèi)相關(guān)的元素分組;<legend>:為fieldset標(biāo)簽定義標(biāo)題;
*<blockquote>:塊應(yīng)用,會(huì)自動(dòng)增加換行以及外邊距。
*對(duì)以下元素去除預(yù)定樣式的外邊距和內(nèi)邊距
*/
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form,
fieldset, legend, input, button, textarea, p, blockquote, th, td {margin: 0; padding: 0;}
/*<abbr>:對(duì)縮寫詞語進(jìn)行標(biāo)記;<acronym>:對(duì)首字母縮寫進(jìn)行標(biāo)記。
*對(duì)以下元素清除邊框樣式*/
fieldset, img {border: 0;}
abbr, acronym{border: 0;font-variant: normal;}
/*元素獲取焦點(diǎn)時(shí)的虛線框*/
:focus{outline: 0;}
/*<address>:可以定義一個(gè)地址,通常內(nèi)容為斜體;<caption>:定義表格的標(biāo)題,必須緊跟在<table>標(biāo)簽之后,且只有一個(gè);
*<cite>、<dfn>、<var>短語元素,呈現(xiàn)特殊樣式;<optgroup>:通常與<select>下拉框聯(lián)合使用,表示分組選擇項(xiàng)的類別名,通常內(nèi)容為斜體。
*對(duì)以下元素字體樣式進(jìn)行設(shè)置
*/
address, caption, cite, code, dfn, th, var, optgroup {font-style: normal;font-weight: normal;}
h1, h2, h3, h4, h5, h6 {font-size: 100%;font-weight: normal;}
input, button, textarea, select, optgroup, option {font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;}
input, button, textarea, select {*font-size: 100%;}
/*清楚列表樣式*/
ol, ul {list-style: none;}
/*border-collapse:定義表格行和列邊框是合并成單邊框還是分別有各自的邊框,值為:separate|collapse
*border-spacing:定義相鄰單元格邊框之間的距離,此時(shí)必須為【邊框分離模式即separate】
*將表格邊框合并
*/
table {border-collapse: collapse;border-spacing: 0;}
caption, th {text-align: left;}
sup, sub {font-size: 100%;vertical-align: baselinebaseline;}
ins {text-decoration: none;}
新聞熱點(diǎn)
疑難解答
圖片精選