[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-detail-699462-en":59,"doc-seo-699462-105":97,"doc-similar-699462":160},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":5,"data":60},{"doc_id":61,"user_id":62,"nickname":63,"user_avatar":64,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":66,"doc_content":67,"file_id":68,"file_url":69,"file_type":70,"file_size":71,"view_count":72,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":73,"language":74,"language_code":75,"site_id":76,"html_lang":75,"table_of_contents":77,"faqs":78,"seo_title":79,"seo_description":66,"update_tm":80,"read_time":81,"preview_page_count":19,"preview_urls":82},699462,5909893218464,"dhado","https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","L3 - CSS Basics - CSS Basics","L3 CSS Basics講義内容围绕网页样式与层叠样式表展开，先介绍style与stylesheet的概念，强调将标记与样式分离，并说明CSS如何通过cascading与specificity在多规则匹配时决定最终渲染。文档覆盖CSS与HTML的三种集成方式（inline、internal、external），重点讲解CSS语法、选择器类型（type/id/class）及CSS3扩展选择器。进一步阐述box-model、单位、custom properties、以及常见属性如字体、颜色、背景、列表与边框等，为后续样式编写提供基础。","L3: CSS Basics  \nWeb Engineering  \n188.951 2VU SS20  \nJürgen Cito  \nL3: CSS Basics  \n• Introducing style and stylesheets  \n• CSS3 Selectors  \n• Box-model  \n• Units  \n• Custom Properties (“CSS Variables”)  \nLearning Goals  \n• Understand separation of markup and style  \n• Attach style information to elements and understand specificity  \n• Apply margins, borders, and paddings to elements (the CSS box-model)  \n• Understand absolute and relative units of positioning and sizing  \nCSS Overview  \nCascading Style Sheets: describes style and layout of a document  \nRecommended by the W3C to separate content and design  \nInitial problem when style and content were mixed Layout got removed gradually with every new standard Levels: CSS1 ⊆ CSS2 / CSS 2.1 ⊆ CSS3  \nIntegration into HTML  \nInline – using the style attribute in elements Internal – using the \u003Cstyle> element in \u003Chead> External – linking to an external CSS file in \u003Chead>  \nExternal way preferred to separate structure/content and style/layout  \nCSS3  \nFully backwards compatible to CSS2  \nModules  \nSelectors  \nBox Model Background and Borders Image Values  \nText Effects  \n2D/3D Transformations Animations  \nMultiple Column Layout User Interface  \n…  \n\"There will never be a CSS4!\"  \n- Tab Atkins Jr, member of CSS Working Group  \nCSS Syntax and Selectors  \nSyntax  \nInline Syntax  \nselector { property:value ; }  \ndeclaration  \n\u003Ctagname style=\"property:value;\">content\u003C/tagname>  \nSelectors  \nType Selector  \nSelect a group of elements via their name  \nID Selector  \nSelect a single unique element via id (‘\\#’)  \nClass Selector  \nSelect a group of elements via class (‘.’)  \nCSS Selector Reference:  [http://www.w3schools.com/cssref/css_selectors.asp](http://www.w3schools.com/cssref/css_selectors.asp)  \n\u003Ch1> ...\u003C/h1>  \nh1 { font-size: 12pt; }  \n\u003Cp id = \"first\" >…\u003C/p>\\#first { color: red; }  \n\u003Cp class = \"small\" >…\u003C/p>\u003Ch1 class = \"small\" >…\u003Ch1/>.small { font-size: 5pt; }  \nCSS Additional Selectors  \n▪ Additional Selectors  \n▪ Descendants: Separate using white-space  \n▪ Children: Separate using‘>’  \n▪ Siblings: Separate using‘~’  \n▪ Adjacent Siblings: Separate using‘+’  \n▪ Attribute: Specify attribute via‘[att=val]’  \n▪ New CSS3 Selectors  \n▪ :nth-child, :first-of-type, [attribute*= value],    \nSelectors can be grouped by separating them via comma‘,’Specificity determines style when multiple selectors match  \nSpecificity Calculator:  [https://specificity.keegan.st](https://specificity.keegan.st/)[/](https://specificity.keegan.st/)  \nCSS Additional Selectors-More Examples  \nSource: Thomas Latoza, SWE 432 GMU, Fall 2017, “HTML & CSS” Lecture  \nCSS Selector Specificity  \nSpecificity: Which CSS rule applies to my element?  \n▪ Inline styles added to an element overwrite any external CSS  \n(Do not use other than for experimentation, then remove/move to external stylesheet)  \n▪ Informally: Most specific rules wins  \nEnables writing generic rules applying to many elements that are overriden by specific rules  \n▪ CSS infers a specificity score  \n▪ Selector with most \\#id selectors wins  \n▪ If count(\\#id) is the same, the selector with the highest number of the following wins:  \n▪ .classes, :pseudo-classes,[attributes]  \n▪ If these are tied, selector with highest number of elements (tags) wins  \n▪ If still tied, source order defines score  \nSpecificity Calculator: [https://specificity.keegan.st/](https://specificity.keegan.st/)  \nCSS Properties Standard Properties  \nFormatting Text/Fonts  \n▪ Font family, style, size, and weight  \n▪ Use font fallback  \n▪ Color  \n▪ Line Height  \n▪ Text Alignment  \nBackground  \n▪ Color  \n▪ Image, Repeat, Attachment, Position  \nLists  \n▪ Item marker or Image  \nBorders  \n▪ Rounded corners  \n▪ Shadow","cbCaiawLeHIJlzOu","https://ap.wps.com/l/cbCaiawLeHIJlzOu","pdf",509841,3,15,"English","en",105,"# Introducing style and stylesheets\n## CSS overview and history\n## Integration into HTML\n## CSS3 overview\n# CSS syntax and selectors\n## Inline syntax\n## Selector types and examples\n## Additional selectors\n## Selector grouping and specificity\n# CSS properties and layout basics\n## Text and font properties\n## Background properties\n## Lists\n## Borders and box model","[{\"question\":\"为什么需要把标记和样式分离，CSS是如何实现的？\",\"answer\":\"文档指出CSS用于实现内容与设计的分离，并通过推荐的外部CSS文件方式，将结构/内容与样式/布局分开管理，从而避免早期样式与内容混用导致的布局问题。\"},{\"question\":\"CSS选择器在多规则匹配时如何决定最终样式？\",\"answer\":\"文档说明specificity决定生效规则：行内样式覆盖外部样式；通常“最具体的规则胜出”，并按#id数量、类/伪类/属性数量、标签数量以及源代码顺序进行比较。\"},{\"question\":\"CSS包含哪些常见的属性类型及其作用？\",\"answer\":\"文档列出标准属性类别，包括文本/字体（字号、颜色、对齐等）、背景（颜色、图片、重复与定位）、列表（项目标记或图片）以及边框（圆角和阴影），并提到box-model用于控制元素的边距、边框与内边距等布局。\"}]","L3 - CSS Basics - CSS Basics | PDF",1794468363,38,[83,87,90,94],{"page_no":8,"url":84,"width":85,"height":86},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/742405056aca908e2d1788499e946940.webp",983,552,{"page_no":14,"url":88,"width":89,"height":86},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/b8d4b76c1e9c1b8e018bc2f424b7d77f.webp",982,{"page_no":72,"url":91,"width":92,"height":93},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/8af386570a0d7ff51cd585c0df6f1ad2.webp",981,551,{"page_no":19,"url":95,"width":96,"height":93},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/41596b1f4254a38c6c1325e36a9e6e6c.webp",980,{"code":4,"msg":98,"data":99},"ok",{"site_id":76,"language":75,"slug":100,"title":65,"keywords":101,"description":66,"schema_data":102,"social_meta":155,"head_meta":157,"extra_data":159,"updated_unix":80},"l3-css-basics-css-basics","",{"@graph":103,"@context":154},[104,117,137],{"@type":105,"itemListElement":106},"BreadcrumbList",[107,111,113,115],{"item":108,"name":109,"@type":110,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":112,"name":9,"@type":110,"position":14},"https://docshare.wps.com/document/",{"item":114,"name":30,"@type":110,"position":72},"https://docshare.wps.com/document/technology/",{"item":116,"name":65,"@type":110,"position":19},"https://docshare.wps.com/document/l3-css-basics-css-basics/699462/",{"url":116,"name":65,"@type":118,"image":119,"author":124,"headline":65,"publisher":126,"fileFormat":129,"inLanguage":75,"description":66,"dateModified":130,"datePublished":131,"encodingFormat":129,"isAccessibleForFree":132,"interactionStatistic":133},"DigitalDocument",{"url":120,"@type":121,"width":122,"height":123},"https://docshare.wps.com/thumbnails/l3-css-basics-css-basics/699462.png","ImageObject",300,407,{"name":63,"@type":125},"Person",{"url":108,"name":127,"@type":128},"DocShare","Organization","application/pdf","2026-11-17","2026-11-12",true,{"@type":134,"interactionType":135,"userInteractionCount":72},"InteractionCounter",{"@type":136},"ViewAction",{"@type":138,"mainEntity":139},"FAQPage",[140,146,150],{"name":141,"@type":142,"acceptedAnswer":143},"为什么需要把标记和样式分离，CSS是如何实现的？","Question",{"text":144,"@type":145},"文档指出CSS用于实现内容与设计的分离，并通过推荐的外部CSS文件方式，将结构/内容与样式/布局分开管理，从而避免早期样式与内容混用导致的布局问题。","Answer",{"name":147,"@type":142,"acceptedAnswer":148},"CSS选择器在多规则匹配时如何决定最终样式？",{"text":149,"@type":145},"文档说明specificity决定生效规则：行内样式覆盖外部样式；通常“最具体的规则胜出”，并按#id数量、类/伪类/属性数量、标签数量以及源代码顺序进行比较。",{"name":151,"@type":142,"acceptedAnswer":152},"CSS包含哪些常见的属性类型及其作用？",{"text":153,"@type":145},"文档列出标准属性类别，包括文本/字体（字号、颜色、对齐等）、背景（颜色、图片、重复与定位）、列表（项目标记或图片）以及边框（圆角和阴影），并提到box-model用于控制元素的边距、边框与内边距等布局。","https://schema.org",{"og:url":116,"og:type":156,"og:title":65,"og:site_name":127,"og:description":66},"article",{"robots":158,"canonical":116},"index,follow",{"doc_id":61,"site_id":76},{"list":161,"token":101},[162,169,175,181,187,193,199,205,211,217],{"doc_id":163,"doc_title":164,"file_type":70,"home_preview_img_url":165,"slug":166,"view_count":167,"category_name":30,"create_tm":168},560833,"SERVICE MENU - TV Service Mode Adjustments - CTV832U Parameters","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947716674/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=tMNHPuUgtglmAu0Ykb6fn52ee6k%3D","service-menu-tv-service-mode-adjustments-ctv832u-parameters",16,1791804244,{"doc_id":170,"doc_title":171,"file_type":70,"home_preview_img_url":172,"slug":173,"view_count":44,"category_name":30,"create_tm":174},639767,"QuickBooks Online - Chapter 1 - New Company Setup","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229970385904/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=aFNckRWhf8%2BGGFDF6AsoZXD0C3E%3D","quickbooks-online-chapter-1-new-company-setup",1792705286,{"doc_id":176,"doc_title":177,"file_type":70,"home_preview_img_url":178,"slug":179,"view_count":167,"category_name":30,"create_tm":180},157133,"Charts - BAND CHARTS - Jan 2014","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229870368988/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=fk%2Fb1zN1U0nn2CKe0qhkifLS6WM%3D","charts-band-charts-jan-2014",1787974287,{"doc_id":182,"doc_title":183,"file_type":70,"home_preview_img_url":184,"slug":185,"view_count":14,"category_name":30,"create_tm":186},701233,"Microsoft Word 365 Basic Authoring and Testing Guide - Document Formatting - Accessibility","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012056672/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=SXx8u0AcgZoYzritrGvopgn7%2BQM%3D","microsoft-word-365-basic-authoring-and-testing-guide-document-formatting-accessibility",1794524608,{"doc_id":188,"doc_title":189,"file_type":70,"home_preview_img_url":190,"slug":191,"view_count":24,"category_name":30,"create_tm":192},687782,"NCC NEWS ADOBE PREMIERE PRO CS6 QUICK GUIDE - Editing File Management Checklist","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000650718/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=Mlzyvhen%2FqyqU8QkM2IWwypFR9E%3D","ncc-news-adobe-premiere-pro-cs6-quick-guide-editing-file-management-checklist",1794085015,{"doc_id":194,"doc_title":195,"file_type":70,"home_preview_img_url":196,"slug":197,"view_count":19,"category_name":30,"create_tm":198},690396,"Microchip MCP73837/8 AC/USB Dual Input Battery Charger Evaluation Board - Overview - Key Features - Kit Content","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002636034/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=MzI7xhacppjczPSSQ%2FmqNTfPr2k%3D","microchip-mcp738378-acusb-dual-input-battery-charger-evaluation-board-overview-key-features-kit-content",1794165574,{"doc_id":200,"doc_title":201,"file_type":70,"home_preview_img_url":202,"slug":203,"view_count":19,"category_name":30,"create_tm":204},688569,"Excel 2007 Shortcuts and Function Keys - CTRL combination shortcut keys","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000659790/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=q%2B09Xcn8KTlNFKTmVseuXP4BUl0%3D","excel-2007-shortcuts-and-function-keys-ctrl-combination-shortcut-keys",1794089758,{"doc_id":206,"doc_title":207,"file_type":70,"home_preview_img_url":208,"slug":209,"view_count":19,"category_name":30,"create_tm":210},686625,"Account Configuration - Account Configuration","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000553731/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=tnorHaY2yj7%2FB2ozhQb%2Fkf5m4J4%3D","account-configuration-account-configuration",1794058864,{"doc_id":212,"doc_title":213,"file_type":70,"home_preview_img_url":214,"slug":215,"view_count":39,"category_name":30,"create_tm":216},700607,"LPDDR5 Datasheet - Revision 1 - Document Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011568408/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=5OC%2B0mLDhhoAziFSvTKkWeJ7hmM%3D","lpddr5-datasheet-revision-1-document-notes",1794519606,{"doc_id":218,"doc_title":219,"file_type":70,"home_preview_img_url":220,"slug":221,"view_count":222,"category_name":30,"create_tm":223},655022,"Round Gear - Miscellaneous Indicator - LED Shift Indicator","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974768970/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=VyjZCFA%2Fh%2BXvX0dWEJLg6%2B37bZg%3D","round-gear-miscellaneous-indicator-led-shift-indicator",14,1792958975]