摘要:最常用黑體宋體黑體宋體公共類(lèi)雅虎代碼初始化黑體宋體黑體宋體公共類(lèi)騰訊官網(wǎng)樣式初始化宋體新浪官網(wǎng)樣式初始化宋體淘寶官網(wǎng)樣式初始化網(wǎng)易官網(wǎng)樣式初始化
最常用
* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } 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; } body { background: #fff; color: #555; font-size: 14px; font-family: "Arial", "Microsoft YaHei", "黑體", "宋體", sans-serif; } td, th, caption { font-size: 14px; } h1, h2, h3, h4, h5, h6 { font-weight: normal; font-size: 100%; } address, caption, cite, code, dfn, em, strong, th, var { font-style: normal; font-weight: normal; } a { color: #555; text-decoration: none; } a:hover { text-decoration: underline; } img { border: none; vertical-align: middle; } ol, ul, li { list-style: none; } input, textarea, select, button { font: 14px "Arial", "Microsoft YaHei", "黑體", "宋體", sans-serif; } table { border-collapse: collapse; } html { overflow-y: scroll; } .clearfix:before, .clearfix:after { content: " "; display: inline-block; height: 0; clear: both; visibility: hidden; } .clearfix { *zoom: 1; } /*公共類(lèi)*/ .fl { float: left } .fr { float: right } .al { text-align: left } .ac { text-align: center } .ar { text-align: right } .hide { display: none }雅虎代碼初始化:
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; } body { background:#fff; color:#555; font-size:14px; font-family: "Arial","Microsoft YaHei","黑體","宋體",sans-serif; } td,th,caption { font-size:14px; } h1, h2, h3, h4, h5, h6 { font-weight:normal; font-size:100%; } address, caption, cite, code, dfn, em, strong, th, var { font-style:normal; font-weight:normal;} a { color:#555; text-decoration:none; } a:hover { text-decoration:underline; } img { border:none; } ol,ul,li { list-style:none; } input, textarea, select, button { font:14px "Arial","Microsoft YaHei","黑體","宋體",sans-serif; } table { border-collapse:collapse; } html {overflow-y: scroll;} .clearfix:after {content: "."; display: block; height:0; clear:both; visibility: hidden;} .clearfix { *zoom:1; }/*公共類(lèi)*/ .fl { float:left} .fr {float:right} .al {text-align:left} .ac {text-align:center} .ar {text-align:right} .hide {display:none}騰訊QQ官網(wǎng)樣式初始化:
body,ol,ul,h1,h2,h3,h4,h5,h6,p,th,td,dl,dd,form,fieldset,legend,input,textarea,select{margin:0;padding:0} body{font:12px"宋體","Arial Narrow",HELVETICA;background:#fff;-webkit-text-size-adjust:100%;} a{color:#2d374b;text-decoration:none} a:hover{color:#cd0200;text-decoration:underline} em{font-style:normal} li{list-style:none} img{border:0;vertical-align:middle} table{border-collapse:collapse;border-spacing:0} p{word-wrap:break-word}新浪官網(wǎng)樣式初始化:
body,ul,ol,li,p,h1,h2,h3,h4,h5,h6,form,fieldset,table,td,img,div{margin:0;padding:0;border:0;} body{background:#fff;color:#333;font-size:12px; margin-top:5px;font-family:"SimSun","宋體","Arial Narrow";} ul,ol{list-style-type:none;} select,input,img,select{vertical-align:middle;} a{text-decoration:none;} a:link{color:#009;} a:visited{color:#800080;} a:hover,a:active,a:focus{color:#c00;text-decoration:underline;}淘寶官網(wǎng)樣式初始化:
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td { margin:0; padding:0; } body, button, input, select, textarea { font:12px/1.5tahoma, arial, 5b8b4f53; } h1, h2, h3, h4, h5, h6{ font-size:100%; } address, cite, dfn, em, var { font-style:normal; } code, kbd, pre, samp { font-family:couriernew, courier, monospace; } small{ font-size:12px; } ul, ol { list-style:none; } a { text-decoration:none; } a:hover { text-decoration:underline; } sup { vertical-align:text-top; } sub{ vertical-align:text-bottom; } legend { color:#000; } fieldset, img { border:0; } button, input, select, textarea { font-size:100%; } table { border-collapse:collapse; border-spacing:0; }網(wǎng)易官網(wǎng)樣式初始化:
html {overflow-y:scroll;} body {margin:0; padding:29px00; font:12px"5B8B4F53",sans-serif;background:#ffffff;} div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,blockquote,p{padding:0; margin:0;} table,td,tr,th{font-size:12px;} li{list-style-type:none;} img{vertical-align:top;border:0;} ol,ul {list-style:none;} h1,h2,h3,h4,h5,h6{font-size:12px; font-weight:normal;} address,cite,code,em,th {font-weight:normal; font-style:normal;}
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請(qǐng)注明本文地址:http://www.ezyhdfw.cn/yun/112004.html
摘要:沒(méi)有關(guān)鍵字修飾的如實(shí)例變量非靜態(tài)變量非靜態(tài)代碼塊初始化實(shí)際上是會(huì)被提取到類(lèi)的構(gòu)造器中被執(zhí)行的,但是會(huì)比類(lèi)構(gòu)造器中的代碼塊優(yōu)先執(zhí)行到,非靜態(tài)實(shí)例變量非靜態(tài)代碼塊的地位是相等的,它們將按順序被執(zhí)行。 閱讀原文:Java代碼執(zhí)行順序 程序中代碼執(zhí)行的順序非常重要,稍有不慎便會(huì)是程序運(yùn)行出錯(cuò),那么我將結(jié)合實(shí)例來(lái)分析代碼中的執(zhí)行。 名詞解釋 首先了解幾個(gè)名詞: 非靜態(tài)代碼塊 直接由 { } 包起...
摘要:構(gòu)造塊優(yōu)先于構(gòu)造函數(shù)執(zhí)行,如果存在多個(gè)構(gòu)造代碼塊,則執(zhí)行順序按照定義的順序依次執(zhí)行。靜態(tài)代碼塊在中使用關(guān)鍵字聲明的代碼塊。同步代碼塊需要寫(xiě)在方法中。 代碼塊 在java中用{}括起來(lái)的稱(chēng)為代碼塊,代碼塊可分為以下四種: 普通代碼塊 構(gòu)造代碼塊 靜態(tài)代碼塊 同步代碼塊 普通代碼塊 在方法或語(yǔ)句中出現(xiàn)的{}就稱(chēng)為普通代碼塊。普通代碼塊和一般語(yǔ)句的執(zhí)行順序由他們?cè)诖a中出現(xiàn)的次序決定,先...
摘要:類(lèi)型瞬時(shí)的代碼審查第一種類(lèi)型是瞬時(shí)代碼審查,它發(fā)生在結(jié)對(duì)編程的情景中。相同的專(zhuān)業(yè)水平考慮進(jìn)行結(jié)對(duì)編程的另一個(gè)重要方面,是一起工作時(shí),兩個(gè)開(kāi)發(fā)者的專(zhuān)業(yè)水平。讓一個(gè)初級(jí)開(kāi)發(fā)者和一個(gè)高級(jí)開(kāi)發(fā)者進(jìn)行結(jié)對(duì)編程,效果并不好。 本文翻譯自:https://dzone.com/articles/4-... 轉(zhuǎn)載請(qǐng)注明出處:葡萄城官網(wǎng),葡萄城為開(kāi)發(fā)者提供專(zhuān)業(yè)的開(kāi)發(fā)工具、解決方案和服務(wù),賦能開(kāi)發(fā)者。 沒(méi)...
摘要:許可證第三條第款中允許被許可人將經(jīng)過(guò)許可證獲得的源代碼同自己其他類(lèi)型的代碼混合得到自己的軟件程序。 引言 最近研究一些軟件源碼,然后分支自行維護(hù)的時(shí)候,開(kāi)始研究各種開(kāi)源許可證之間的區(qū)別,網(wǎng)上搜索了一些資料,特在此分享記錄。 一張圖區(qū)分GPL、BSD、MIT、Mozilla、Apache和LGPL之間的區(qū)別 首先借用阮一峰大大的一張相當(dāng)直觀(guān)清晰的圖來(lái)劃分各種協(xié)議:開(kāi)源許可證GPL、BSD...
閱讀 3640·2021-11-18 10:02
閱讀 3178·2019-08-29 18:34
閱讀 3481·2019-08-29 17:00
閱讀 496·2019-08-29 12:35
閱讀 823·2019-08-28 18:22
閱讀 2069·2019-08-26 13:58
閱讀 1747·2019-08-26 10:39
閱讀 2745·2019-08-26 10:11