什么是CSS?它的主要作用是什么?
What is CSS? What are its main functions?
- *考察点:基础概念理解。*
共 58 道题目
What is CSS? What are its main functions?
What types of CSS selectors are there? What are their characteristics?
How to select elements with class and ID selectors? What are the differences?
What is the box model? What parts does it contain?
How to set element margins and padding?
What are the common values of the display property? What are their functions?
How to hide an element without taking up space?
How does CSS inheritance mechanism work? Which properties can be inherited?
What are CSS cascade rules? How to determine priority when styles conflict?
What is float? What are the common use cases?
How to clear floats? What are the common methods?
What values does the position property have? What are their functions?
How to implement absolute and relative positioning?
What is z-index? How does it affect element layering?
How to use transition to create simple animation effects?
What's the difference between pseudo-classes and pseudo-elements? Give examples.
How to use @media to implement responsive layout?
How to calculate CSS selector specificity? What is the role of !important?
How to make images adapt to parent container width?
How to use overflow to control content overflow?
What is the role of box-sizing property? What's the difference between content-box and border-box?
What are the main axis and cross axis in flexbox layout?
How to achieve horizontal and vertical centering with flexbox?
What's the difference between grid layout and flexbox layout?
How to implement a two-column adaptive layout with grid?
What is the working principle of position: sticky?
How to implement responsive font sizes?
How to define and use @keyframes animations?
How to optimize CSS selector performance?
What are common CSS compatibility issues? How to solve them?
How to use rem and em units? What are the differences?
How to implement ellipsis for multi-line text overflow?
What are the CSS modularization solutions? What are their pros and cons?
How to use animations to enhance user experience? Give examples.
How to use media queries to adapt to different devices?
How to use CSS variables to improve style reusability?
How to use BEM naming convention to manage styles?
How to use pseudo-classes to implement interactive effects? Give examples.
How to use transform to implement element rotation and scaling?
What are the main features of CSS preprocessors (Sass/Less)?
How to optimize CSS animation performance? Which properties are suitable for animations?
How to design a scalable responsive layout system?
How to optimize the performance of complex animations?
How to implement complex nested layouts with grid?
How to implement masonry layout with CSS?
How to implement a theme system for CSS component libraries?
How to implement theme switching with variables and functions?
How to use CSS modularization to improve team collaboration efficiency?
How to combine animation with JS to implement complex interactions?
How to analyze and resolve CSS rendering performance bottlenecks?
How to implement adaptive components with media queries and container queries?
How to implement maintainable large project style architecture with BEM and CSS variables?
How to implement complex SVG animations with CSS?
How to implement multi-level visual effects with CSS?
How to improve first-screen rendering speed with CSS?
How to combine CSS with frameworks (like React/Vue) to implement dynamic styles?
How to implement complex 3D transformation effects with CSS?
How to design a maintainable CSS architecture? What are the design principles?