摘要:最常用黑體宋體黑體宋體公共類雅虎代碼初始化黑體宋體黑體宋體公共類騰訊官網(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; } /*公共類*/ .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; }/*公共類*/ .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)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請注明本文地址:http://systransis.cn/yun/112004.html
摘要:沒有關(guān)鍵字修飾的如實(shí)例變量非靜態(tài)變量非靜態(tài)代碼塊初始化實(shí)際上是會被提取到類的構(gòu)造器中被執(zhí)行的,但是會比類構(gòu)造器中的代碼塊優(yōu)先執(zhí)行到,非靜態(tài)實(shí)例變量非靜態(tài)代碼塊的地位是相等的,它們將按順序被執(zhí)行。 閱讀原文:Java代碼執(zhí)行順序 程序中代碼執(zhí)行的順序非常重要,稍有不慎便會是程序運(yùn)行出錯(cuò),那么我將結(jié)合實(shí)例來分析代碼中的執(zhí)行。 名詞解釋 首先了解幾個(gè)名詞: 非靜態(tài)代碼塊 直接由 { } 包起...
摘要:構(gòu)造塊優(yōu)先于構(gòu)造函數(shù)執(zhí)行,如果存在多個(gè)構(gòu)造代碼塊,則執(zhí)行順序按照定義的順序依次執(zhí)行。靜態(tài)代碼塊在中使用關(guān)鍵字聲明的代碼塊。同步代碼塊需要寫在方法中。 代碼塊 在java中用{}括起來的稱為代碼塊,代碼塊可分為以下四種: 普通代碼塊 構(gòu)造代碼塊 靜態(tài)代碼塊 同步代碼塊 普通代碼塊 在方法或語句中出現(xiàn)的{}就稱為普通代碼塊。普通代碼塊和一般語句的執(zhí)行順序由他們在代碼中出現(xiàn)的次序決定,先...
摘要:類型瞬時(shí)的代碼審查第一種類型是瞬時(shí)代碼審查,它發(fā)生在結(jié)對編程的情景中。相同的專業(yè)水平考慮進(jìn)行結(jié)對編程的另一個(gè)重要方面,是一起工作時(shí),兩個(gè)開發(fā)者的專業(yè)水平。讓一個(gè)初級開發(fā)者和一個(gè)高級開發(fā)者進(jìn)行結(jié)對編程,效果并不好。 本文翻譯自:https://dzone.com/articles/4-... 轉(zhuǎn)載請注明出處:葡萄城官網(wǎng),葡萄城為開發(fā)者提供專業(yè)的開發(fā)工具、解決方案和服務(wù),賦能開發(fā)者。 沒...
閱讀 3549·2021-11-18 10:02
閱讀 3118·2019-08-29 18:34
閱讀 3404·2019-08-29 17:00
閱讀 437·2019-08-29 12:35
閱讀 764·2019-08-28 18:22
閱讀 1944·2019-08-26 13:58
閱讀 1678·2019-08-26 10:39
閱讀 2683·2019-08-26 10:11