中文解释:-webkit-text-size-adjust100bodymargin0articleasidedetailsfigcaptionfigurefooterheaderhgroupmainmenunavsectionsummarydisplayblockaudiocanvasprogressvideodisplayinline-block;vertical-alignbaselinea
这是一段CSS代码,用于设置网页中各种元素的样式。具体解释如下:
-webkit-text-size-adjust:100%:设置文字大小调整为100%。 body{margin:0}:设置页面主体的外边距为0。 article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}:将这些元素的显示方式设置为块级元素,即独占一行。 audio,canvas,progress,video{display:inline-block;vertical-align:baseline}:将这些元素的显示方式设置为行内块级元素,可以和其他元素在一行内显示。 audio:not([controls]){display:none;height:0}:如果音频没有控制条,则将其隐藏,并将高度设置为0。 [hidden],template{display:none}:将隐藏的元素和模板元素的显示方式都设置为隐藏。 a{background-color:transparent}:将链接的背景色设置为透明。 a:active,a:hover{outline:0}:当链接被激活或鼠标悬停在上面时,取消其边框。 abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;-moz-text-decoration:underline dotted;text-decoration:underline dotted}:对于带有title属性的缩略词元素,设置其下边框为无,文本装饰为下划线,并添加虚线样式。 b,strong{font-weight:700}:将加粗文本元素的字重设置为700。 dfn{font-style:italic}:将定义文本元素的字体样式设置为斜体。 h1{font-size:2em;margin:.67em 0}:将一级标题元素的字体大小设置为2em,外边距设置为顶部0.67em,底部0。 mark{background:#ff0;color:#000}:将标记元素的背景颜色设置为黄色,文本颜色设置为黑色。 small{font-size:80%}:将小字体元素的字体大小设置为80%。 sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}:将下标和上标元素的字体大小设置为75%,行高设置为0,位置设置为相对定位,垂直对齐方式设置为基线。 sup{top:-.5em}:将上标元素向上移动0.5em。 sub{bottom:-.25em}:将下标元素向下移动0.25em。 img{border:0}:将图片元素的边框设置为0。 svg:not(:root):对于非根级别的svg元素,不做任何特殊处理
原文地址: https://www.cveoy.top/t/topic/fw5Q 著作权归作者所有。请勿转载和采集!