charset - CSS(层叠样式表) - MDN Web Docs

文章推薦指數: 80 %
投票人數:10人

使用参考文档定义的字符编码: 元素的charset 属性。

该方法在HTML5 标准中已废除,无法使用。

假设文档是UTF-8。

语法. SkiptomaincontentSkiptosearchSkiptoselectlanguageWeb开发技术CSS(层叠样式表)@charsetArticleActions中文(简体)此页面由社区从英文翻译而来。

了解更多并加入MDNWebDocs社区。

概述语法例子规范浏览器兼容性参见RelatedTopics CSS 教程 CSS基础 CSS第一步 CSS第一步概述 什么是CSS? CSS入门 CSS的结构是怎样的 CSS是如何工作的 测验:为传记页面添加样式 CSS构建 CSS构建基础概述 级联与继承 CSS选择器 盒子模型 背景和边框 处理不同方向的文本 溢出 CSS值和单位 在CSS中调整大小 图像、媒体和表单元素 样式化表格 调试CSS 组织你的CSS 测验:基本的CSS理解 测验:创建精美的信纸 测验:一个漂亮的盒子 样式化文本 样式化文本概述 基础文本与字体样式化 样式化列表 样式化链接 Web字体 测验:排版社区大学首页 CSS布局概述 CSS布局概述 IntroductiontoCSSlayout 一般的流布局 Flex布局 网格 浮动 定位 多栏式布局 响应式布局 媒体查询入门指南 传统的布局方法 支持旧版浏览器 测验:对布局基础知识的理解 参考 ModulesCompositingandBlending(en-US)CSSAnimationsCSSBackgroundsandBordersCSSBasicUserInterfaceCSSBoxModelCSSCharsets(en-US)CSSColorsCSSMulti-columnLayoutCSSConditionalRulesCSSCounterStylesCSSDisplay(en-US)CSSFlexibleBoxLayoutCSSFontsCSSFragmentationCSSGeneratedContentCSSGridLayout 实验性 CSSHoudini(en-US)CSSImages(en-US)CSSLists(en-US)CSSLogicalPropertiesandValuesCSSMaskingCSSMiscellaneous(en-US)CSSMotionPath(en-US)CSSNamespaces(en-US)CSSPagedMedia(en-US)CSSPositionedLayoutCSSRubyLayout(en-US)CSSScrollSnapCSSScrollSnapPoints(en-US)CSSScrollbarsCSSselectorsCSSShapesCSSTableCSSTextCSSTextDecorationCSSTransformsCSSTransitionsCSSdatatypesCSSCustomPropertiesforCascadingVariables(en-US)CSSWritingModesCSSOMViewFilterEffects(en-US)MediaqueriesPseudo-classesPseudo-elementsCSSreference Properties-webkit-line-clamp-webkit-text-fill-color(en-US)-webkit-text-stroke-webkit-text-stroke-color(en-US)-webkit-text-stroke-width(en-US)accent-color(en-US)align-contentalign-itemsalign-self 实验性 align-tracks(en-US)allanimation 实验性 animation-composition(en-US)animation-delayanimation-directionanimation-durationanimation-fill-modeanimation-iteration-countanimation-nameanimation-play-state 实验性 animation-timeline(en-US)animation-timing-functionappearanceaspect-ratiobackdrop-filterbackface-visibilitybackgroundbackground-attachmentbackground-blend-modebackground-clipbackground-colorbackground-imagebackground-originbackground-positionbackground-position-xbackground-position-ybackground-repeatbackground-sizeblock-sizeborderborder-blockborder-block-color(en-US)border-block-endborder-block-end-color(en-US)border-block-end-style(en-US)border-block-end-width(en-US)border-block-start(en-US)border-block-start-color(en-US)border-block-start-style(en-US)border-block-start-width(en-US)border-block-style(en-US)border-block-width(en-US)border-bottomborder-bottom-colorborder-bottom-left-radiusborder-bottom-right-radiusborder-bottom-styleborder-bottom-widthborder-collapseborder-colorborder-end-end-radius(en-US)border-end-start-radius(en-US)border-imageborder-image-outsetborder-image-repeatborder-image-sliceborder-image-sourceborder-image-widthborder-inline(en-US)border-inline-colorborder-inline-end(en-US)border-inline-end-color(en-US)border-inline-end-style(en-US)border-inline-end-width(en-US)border-inline-start(en-US)border-inline-start-color(en-US)border-inline-start-style(en-US)border-inline-start-width(en-US)border-inline-style(en-US)border-inline-width(en-US)border-leftborder-left-colorborder-left-styleborder-left-widthborder-radiusborder-rightborder-right-colorborder-right-styleborder-right-widthborder-spacingborder-start-end-radius(en-US)border-start-start-radius(en-US)border-styleborder-topborder-top-colorborder-top-left-radiusborder-top-right-radiusborder-top-styleborder-top-widthborder-widthbottombox-decoration-breakbox-shadowbox-sizingbreak-afterbreak-beforebreak-insidecaption-sidecaret-colorclear 已弃用 clipclip-pathcolorcolor-schemecolumn-countcolumn-fillcolumn-gapcolumn-rulecolumn-rule-colorcolumn-rule-stylecolumn-rule-widthcolumn-spancolumn-width(en-US)columnscontain 实验性 contain-intrinsic-block-size(en-US) 实验性 contain-intrinsic-height(en-US) 实验性 contain-intrinsic-inline-size(en-US) 实验性 contain-intrinsic-size(en-US) 实验性 contain-intrinsic-width(en-US)contentcontent-visibility(en-US)counter-incrementcounter-resetcounter-set(en-US)cursordirectiondisplayempty-cellsfilterflexflex-basisflex-directionflex-flowflex-growflex-shrinkflex-wrapfloatfontfont-familyfont-feature-settingsfont-kerningfont-language-overridefont-optical-sizing(en-US)font-sizefont-size-adjustfont-stretchfont-stylefont-synthesisfont-variantfont-variant-alternatesfont-variant-capsfont-variant-east-asian(en-US)font-variant-ligaturesfont-variant-numericfont-variant-positionfont-variation-settingsfont-weightforced-color-adjust(en-US)gapgridgrid-areagrid-auto-columnsgrid-auto-flowgrid-auto-rowsgrid-columngrid-column-end(en-US)grid-column-start(en-US)grid-rowgrid-row-end(en-US)grid-row-start(en-US)grid-templategrid-template-areasgrid-template-columnsgrid-template-rowshanging-punctuationheighthyphenate-character(en-US)hyphensimage-orientationimage-rendering 实验性 image-resolution(en-US) 已弃用 ime-mode(en-US) 实验性 initial-letter(en-US) 实验性 initial-letter-align(en-US)inline-sizeinset(en-US)inset-block(en-US)inset-block-end(en-US)inset-block-start(en-US)inset-inline(en-US)inset-inline-end(en-US)inset-inline-start(en-US)isolationjustify-contentjustify-itemsjustify-self 实验性 justify-tracks(en-US)leftletter-spacingline-breakline-height 实验性 line-height-step(en-US)list-stylelist-style-imagelist-style-positionlist-style-typemarginmargin-blockmargin-block-end(en-US)margin-block-startmargin-bottommargin-inline(en-US)margin-inline-end(en-US)margin-inline-start(en-US)margin-leftmargin-rightmargin-top 实验性 margin-trim(en-US)maskmask-bordermask-border-modemask-border-outset(en-US)mask-border-repeatmask-border-slicemask-border-source(en-US)mask-border-widthmask-clip(en-US)mask-composite(en-US)mask-imagemask-modemask-origin(en-US)mask-position(en-US)mask-repeatmask-size(en-US)mask-type(en-US) 实验性 masonry-auto-flow(en-US) 实验性 math-depth(en-US) 实验性 math-shift(en-US) 实验性 math-style(en-US)max-block-size(en-US)max-heightmax-inline-size(en-US)max-widthmin-block-size(en-US)min-heightmin-inline-size(en-US)min-widthmix-blend-modeobject-fitobject-positionoffsetoffset-anchor(en-US)offset-distance(en-US)offset-path(en-US) 实验性 offset-position(en-US)offset-rotate(en-US)opacityorderorphans(en-US)outlineoutline-coloroutline-offsetoutline-styleoutline-widthoverflowoverflow-anchoroverflow-blockoverflow-clip-margin(en-US)overflow-inline(en-US)overflow-wrapoverflow-xoverflow-yoverscroll-behavioroverscroll-behavior-block(en-US)overscroll-behavior-inline(en-US)overscroll-behavior-xoverscroll-behavior-ypaddingpadding-block(en-US)padding-block-end(en-US)padding-block-start(en-US)padding-bottompadding-inline(en-US)padding-inline-end(en-US)padding-inline-startpadding-leftpadding-rightpadding-toppage-break-afterpage-break-before(en-US)page-break-insidepaint-orderperspectiveperspective-originplace-contentplace-itemsplace-self(en-US)pointer-eventspositionprint-color-adjust(en-US)quotesresizerightrotaterow-gap 实验性 ruby-align(en-US)ruby-position(en-US)scalescroll-behaviorscroll-marginscroll-margin-block(en-US)scroll-margin-block-end(en-US)scroll-margin-block-start(en-US)scroll-margin-bottom(en-US)scroll-margin-inline(en-US)scroll-margin-inline-end(en-US)scroll-margin-inline-start(en-US)scroll-margin-left(en-US)scroll-margin-right(en-US)scroll-margin-topscroll-padding(en-US)scroll-padding-block(en-US)scroll-padding-block-end(en-US)scroll-padding-block-start(en-US)scroll-padding-bottom(en-US)scroll-padding-inline(en-US)scroll-padding-inline-end(en-US)scroll-padding-inline-start(en-US)scroll-padding-left(en-US)scroll-padding-right(en-US)scroll-padding-top(en-US)scroll-snap-align(en-US)scroll-snap-stop(en-US)scroll-snap-type 实验性 scroll-timeline(en-US) 实验性 scroll-timeline-axis(en-US) 实验性 scroll-timeline-name(en-US)scrollbar-colorscrollbar-gutter(en-US)scrollbar-widthshape-image-thresholdshape-marginshape-outsidetab-sizetable-layouttext-aligntext-align-lasttext-combine-upright(en-US)text-decorationtext-decoration-colortext-decoration-line 实验性 text-decoration-skiptext-decoration-skip-ink(en-US)text-decoration-styletext-decoration-thicknesstext-emphasis(en-US)text-emphasis-color(en-US)text-emphasis-position(en-US)text-emphasis-style(en-US)text-indenttext-justifytext-orientationtext-overflowtext-renderingtext-shadow 实验性 text-size-adjusttext-transformtext-underline-offset(en-US)text-underline-positiontoptouch-actiontransformtransform-boxtransform-origintransform-styletransitiontransition-delaytransition-durationtransition-propertytransition-timing-functiontranslateunicode-bidiuser-selectvertical-alignvisibilitywhite-spacewidowswidthwill-changeword-breakword-spacingwriting-modez-index SelectorsAdjacentsiblingcombinatorAttributeselectorsChildcombinatorClassselectors 实验性 ColumncombinatorDescendantcombinatorGeneralsiblingcombinatorIDselectorsSelectorlistTypeselectorsUniversalselectors Pseudo-classes:active:any-link:autofill(en-US) 实验性 :blank:checked:default:defined:dir():disabled:empty:enabled:first:first-child:first-of-type:focus:focus-visible:focus-within:fullscreen:has():host:host-context():host():hover:in-range:indeterminate:invalid:is():lang():last-child:last-of-type:left:link:modal(en-US):not():nth-child():nth-last-child():nth-last-of-type():nth-of-type():only-child:only-of-type:optional:out-of-range:paused(en-US):picture-in-picture:placeholder-shown:playing(en-US):read-only:read-write:required:right:root:scope:target 实验性 :user-invalid(:-moz-ui-invalid)(en-US) 实验性 :user-valid(:-moz-ui-valid)(en-US):valid:visited:where()Privacyandthe:visitedselectorPseudo-classes Pseudo-elements::after(:after)::backdrop::before(:before)::cue::cue-region(en-US)::file-selector-button::first-letter(:first-letter)::first-line(:first-line) 实验性 ::grammar-error::marker::part()::placeholder::selection::slotted() 实验性 ::spelling-error 实验性 ::target-text(en-US)Pseudo-elements At-rules@charset@color-profile(en-US)@counter-style@font-face@font-feature-values@import@keyframes@layer@media@namespace@page 实验性 @property 已弃用 @scroll-timeline(en-US)@supports Types(en-US)CSSFunctionalNotationCSSdatatypes(en-US)(en-US)(en-US)(en-US)(en-US)(en-US) 已弃用 (en-US)



請為這篇文章評分?