1.在CSS里代码#main是源译什么意思啊?
2.CSS代ç ç¿»è¯
在CSS里代码#main是什么意思啊?
#main的意思是在css中定义一个id为main的样式,在页面中调用时为
“<div id="main">内容</div>”,码翻红标朔源码ID不可重复使用,源译diagram 源码 开源一般用于布局
CSS代ç ç¿»è¯
body { /*设置bodyæ´ä½æ ·å¼*/
background-color: #DCDCDC; /*èæ¯è²*/
font-family: Arial,码翻amcap源码解读 Helvetica, sans-serif;/*åä½*/
font-size: px;/*åä½å¤§å°*/
line-height: px;/*æåè¡é«*/
color: #;/*åä½é¢è²*/
}
td, th { /*设置ææè¡¨æ ¼ä¸td thæ ·å¼ ä»¥ä¸å±æ§åbodyä¸æ ·è§£é*/
font-family: Arial, Helvetica, sans-serif;
font-size: px;
line-height: px;
color: #;
}
a { /*设置é¾æ¥æ ·å¼*/
color: #CC;
text-decoration: none; /*æ ä¸å线*/
}
form { /*表åæ ·å¼*/
background-color: #CCCC;
}
.title { /*设置类å为titleçå ç´ æ ·å¼ */
font-family: Arial, Helvetica, sans-serif;
font-size: px;
line-height: px;
background-color: #;
color: #DCDCDC;
}
.subtitle { /*设置类å为subtitleçå ç´ æ ·å¼ */
font-family: Arial, Helvetica, sans-serif;
font-size: px;
line-height: px;
font-weight: bold; /*åä½ç²ç»*/
color: #;
}
.header { /*设置类å为headerçå ç´ æ ·å¼ */
font-family: Arial, Helvetica, sans-serif;
font-size: px;
background-color: #;
color: #DCDCDC;
}
.nav { /*设置类å为navçå ç´ æ ·å¼ */
font-family: Arial, Helvetica, sans-serif;
font-size: px;
font-weight: bold;
background-color: #CCCCCC;
}
.navLink { /*设置类å为navLinkçå ç´ æ ·å¼ */
font-family: Arial, Helvetica, sans-serif;
font-size: px;
font-weight: bold;
background-color: #DEDECA;
}
.sidebar { /*设置类å为sidebarçå ç´ æ ·å¼ */
font-family: Arial, Helvetica, sans-serif;
font-size: px;
line-height: px;
padding: 3px; /*å è¡¥ç½ä¸º3åç´ */
background-color: #FFFFFF;
}
.sidebarHeader { /*设置类å为sidebarHeaderçå ç´ æ ·å¼ */
font-family: Arial, Helvetica, sans-serif;
font-size: px;
line-height: px;
color: #FFFFFF;
background-color: #;
}
.sidebarFooter { /*设置类å为sidebarFooterçå ç´ æ ·å¼ */
font-family: Arial, Helvetica, sans-serif;
font-size: px;
line-height: px;
background-color: #CCCCCC;
}
.footer { /*设置类å为footerçå ç´ æ ·å¼ */
font-family: Arial, Helvetica, sans-serif;
font-size: px;
font-weight: bold;
line-height: px;
color: #;
background-color: #CCCCCC;
}
.legal { /*设置类å为legalçå ç´ æ ·å¼ */
font-family: Arial, Helvetica, sans-serif;
font-size: 9px;
color: #;
}
.box1 { /*设置类å为box1çå ç´ è¾¹æ¡æ ·å¼ */
border-color: #CCCCCC # # #CCCCCC; /*è¾¹æ¡çä¸ å³ ä¸ å·¦ä¾æ¬¡å¯¹åºçé¢è²*/
border-width: medium; /*è¾¹æ¡ç²ç»*/
border-style: ridge; /*è¾¹æ¡é£æ ¼*/
}
.promo { /*设置类å为promoçå ç´ æ ·å¼ */
font-family: "Times New Roman", Times, serif;
color: #;
}
.titlebar { /*设置类å为titlebarçå ç´ æ ·å¼ */
font-family: "Times New Roman", Times, serif;
font-size: 9px;
color: #FFFFFF;
background-color: #;
}
.dingbat { /*设置类å为dingbatçå ç´ æ ·å¼ */
font-family: Arial, Helvetica, sans-serif;
background-color: #CC;
color: #;
font-weight: bolder;
font-size: medium;
}
a:hover { /*设置å½é¼ æ 移ä¸æ¶åçé¾æ¥æ ·å¼ */
text-decoration: underline;
}
input.big { /*设置inputå ç´ ä¸ç±»å为bigçæ ·å¼ */
width: px; /*宽*/
}
input.small { /*设置inputå ç´ ä¸ç±»å为smallçæ ·å¼ */
width: px;
}
2024-12-28 13:53
2024-12-28 12:46
2024-12-28 12:42
2024-12-28 12:10
2024-12-28 11:59
2024-12-28 11:50