🎨 CSS

共 58 道题目

#1 初级 CSS

什么是CSS?它的主要作用是什么?

What is CSS? What are its main functions?

**What is CSS? What are its main functions?**
- *考察点:基础概念理解。*
#2 初级 CSS

CSS选择器有哪些类型?分别有什么特点?

What types of CSS selectors are there? What are their characteristics?

**What types of CSS selectors are there? What are their characteristics?**
- *考察点:选择器分类。*
#3 初级 CSS

如何通过类选择器和ID选择器选中元素?有什么区别?

How to select elements with class and ID selectors? What are the differences?

**How to select elements with class and ID selectors? What are the differences?**
- *考察点:选择器用法与区别。*
#4 初级 CSS

什么是盒模型?包含哪些部分?

What is the box model? What parts does it contain?

**What is the box model? What parts does it contain?**
- *考察点:盒模型结构。*
#5 初级 CSS

如何设置元素的外边距和内边距?

How to set element margins and padding?

**How to set element margins and padding?**
- *考察点:margin与padding。*
#6 初级 CSS

display属性有哪些常见值?分别有什么作用?

What are the common values of the display property? What are their functions?

**What are the common values of the display property? What are their functions?**
- *考察点:display属性。*
#7 初级 CSS

如何让一个元素隐藏但不占空间?

How to hide an element without taking up space?

**How to hide an element without taking up space?**
- *考察点:隐藏方式。*
#8 初级 CSS

CSS继承机制是如何工作的?哪些属性可以继承?

How does CSS inheritance mechanism work? Which properties can be inherited?

**How does CSS inheritance mechanism work? Which properties can be inherited?**
- *考察点:继承机制。*
#9 初级 CSS

CSS层叠规则是什么?样式冲突时如何确定优先级?

What are CSS cascade rules? How to determine priority when styles conflict?

**What are CSS cascade rules? How to determine priority when styles conflict?**
- *考察点:层叠规则。*
#10 初级 CSS

什么是浮动(float)?常见应用场景有哪些?

What is float? What are the common use cases?

**What is float? What are the common use cases?**
- *考察点:float用法。*
#11 初级 CSS

如何清除浮动?常用方法有哪些?

How to clear floats? What are the common methods?

**How to clear floats? What are the common methods?**
- *考察点:清除浮动。*
#12 初级 CSS

position属性有哪些值?分别有什么作用?

What values does the position property have? What are their functions?

**What values does the position property have? What are their functions?**
- *考察点:定位方式。*
#13 初级 CSS

如何实现绝对定位和相对定位?

How to implement absolute and relative positioning?

**How to implement absolute and relative positioning?**
- *考察点:定位原理。*
#14 初级 CSS

什么是z-index?如何影响元素层级?

What is z-index? How does it affect element layering?

**What is z-index? How does it affect element layering?**
- *考察点:层级控制。*
#15 初级 CSS

如何使用transition实现简单动画效果?

How to use transition to create simple animation effects?

**How to use transition to create simple animation effects?**
- *考察点:transition动画。*
#16 初级 CSS

伪类和伪元素有什么区别?举例说明。

What's the difference between pseudo-classes and pseudo-elements? Give examples.

**What's the difference between pseudo-classes and pseudo-elements? Give examples.**
- *考察点:伪类与伪元素。*
#17 初级 CSS

如何使用@media实现响应式布局?

How to use @media to implement responsive layout?

**How to use @media to implement responsive layout?**
- *考察点:媒体查询。*
#18 初级 CSS

如何计算CSS选择器的优先级?!important的作用是什么?

How to calculate CSS selector specificity? What is the role of !important?

**How to calculate CSS selector specificity? What is the role of !important?**
- *考察点:选择器优先级。*
#19 初级 CSS

如何让图片自适应父容器宽度?

How to make images adapt to parent container width?

**How to make images adapt to parent container width?**
- *考察点:图片自适应。*
#20 初级 CSS

如何使用overflow控制内容溢出?

How to use overflow to control content overflow?

**How to use overflow to control content overflow?**
- *考察点:overflow属性。*
#21 初级 CSS

box-sizing属性有什么作用?content-box和border-box的区别是什么?

What is the role of box-sizing property? What's the difference between content-box and border-box?

**What is the role of box-sizing property? What's the difference between content-box and border-box?**
- *考察点:盒模型计算。*
#1 中级 CSS

flex布局的主轴和交叉轴分别是什么?

What are the main axis and cross axis in flexbox layout?

**What are the main axis and cross axis in flexbox layout?**
- *考察点:flex原理。*
#2 中级 CSS

如何用flex实现水平垂直居中?

How to achieve horizontal and vertical centering with flexbox?

**How to achieve horizontal and vertical centering with flexbox?**
- *考察点:flex居中。*
#3 中级 CSS

grid布局与flex布局有什么区别?

What's the difference between grid layout and flexbox layout?

**What's the difference between grid layout and flexbox layout?**
- *考察点:布局对比。*
#4 中级 CSS

如何用grid实现两栏自适应布局?

How to implement a two-column adaptive layout with grid?

**How to implement a two-column adaptive layout with grid?**
- *考察点:grid应用。*
#5 中级 CSS

position: sticky的工作原理是什么?

What is the working principle of position: sticky?

**What is the working principle of position: sticky?**
- *考察点:sticky定位。*
#6 中级 CSS

如何实现响应式字体大小?

How to implement responsive font sizes?

**How to implement responsive font sizes?**
- *考察点:响应式单位。*
#7 中级 CSS

@keyframes动画如何定义和使用?

How to define and use @keyframes animations?

**How to define and use @keyframes animations?**
- *考察点:关键帧动画。*
#8 中级 CSS

如何优化CSS选择器性能?

How to optimize CSS selector performance?

**How to optimize CSS selector performance?**
- *考察点:性能优化。*
#9 中级 CSS

常见的CSS兼容性问题有哪些?如何解决?

What are common CSS compatibility issues? How to solve them?

**What are common CSS compatibility issues? How to solve them?**
- *考察点:兼容性处理。*
#10 中级 CSS

如何使用rem和em单位?区别是什么?

How to use rem and em units? What are the differences?

**How to use rem and em units? What are the differences?**
- *考察点:单位区别。*
#11 中级 CSS

如何实现多行文本溢出省略号?

How to implement ellipsis for multi-line text overflow?

**How to implement ellipsis for multi-line text overflow?**
- *考察点:文本溢出。*
#12 中级 CSS

CSS模块化有哪些方案?各有什么优缺点?

What are the CSS modularization solutions? What are their pros and cons?

**What are the CSS modularization solutions? What are their pros and cons?**
- *考察点:模块化方案。*
#13 中级 CSS

如何用动画提升用户体验?举例说明。

How to use animations to enhance user experience? Give examples.

**How to use animations to enhance user experience? Give examples.**
- *考察点:动画应用。*
#14 中级 CSS

如何用媒体查询适配不同设备?

How to use media queries to adapt to different devices?

**How to use media queries to adapt to different devices?**
- *考察点:设备适配。*
#15 中级 CSS

如何用CSS变量提升样式复用性?

How to use CSS variables to improve style reusability?

**How to use CSS variables to improve style reusability?**
- *考察点:CSS变量。*
#16 中级 CSS

如何用BEM命名规范管理样式?

How to use BEM naming convention to manage styles?

**How to use BEM naming convention to manage styles?**
- *考察点:BEM规范。*
#17 中级 CSS

如何用伪类实现交互效果?举例说明。

How to use pseudo-classes to implement interactive effects? Give examples.

**How to use pseudo-classes to implement interactive effects? Give examples.**
- *考察点:伪类交互。*
#18 中级 CSS

如何用transform实现元素旋转和缩放?

How to use transform to implement element rotation and scaling?

**How to use transform to implement element rotation and scaling?**
- *考察点:transform应用。*
#19 中级 CSS

CSS预处理器(Sass/Less)的主要功能有哪些?

What are the main features of CSS preprocessors (Sass/Less)?

**What are the main features of CSS preprocessors (Sass/Less)?**
- *考察点:预处理器功能。*
#20 中级 CSS

如何优化CSS动画性能?哪些属性适合做动画?

How to optimize CSS animation performance? Which properties are suitable for animations?

**How to optimize CSS animation performance? Which properties are suitable for animations?**
- *考察点:动画性能优化。*
#1 高级 CSS

如何设计一个可扩展的响应式布局系统?

How to design a scalable responsive layout system?

**How to design a scalable responsive layout system?**
- *考察点:布局架构。*
#2 高级 CSS

如何优化复杂动画的性能?

How to optimize the performance of complex animations?

**How to optimize the performance of complex animations?**
- *考察点:动画性能。*
#3 高级 CSS

如何用grid实现复杂的嵌套布局?

How to implement complex nested layouts with grid?

**How to implement complex nested layouts with grid?**
- *考察点:grid嵌套。*
#4 高级 CSS

如何用CSS实现瀑布流布局?

How to implement masonry layout with CSS?

**How to implement masonry layout with CSS?**
- *考察点:瀑布流实现。*
#5 高级 CSS

如何实现CSS组件库的主题系统?

How to implement a theme system for CSS component libraries?

**How to implement a theme system for CSS component libraries?**
- *考察点:主题系统设计。*
#6 高级 CSS

如何用变量和函数实现主题切换?

How to implement theme switching with variables and functions?

**How to implement theme switching with variables and functions?**
- *考察点:主题切换。*
#7 高级 CSS

如何用CSS模块化提升团队协作效率?

How to use CSS modularization to improve team collaboration efficiency?

**How to use CSS modularization to improve team collaboration efficiency?**
- *考察点:模块化管理。*
#8 高级 CSS

如何用animation结合JS实现复杂交互?

How to combine animation with JS to implement complex interactions?

**How to combine animation with JS to implement complex interactions?**
- *考察点:动画与JS结合。*
#9 高级 CSS

如何分析和解决CSS渲染性能瓶颈?

How to analyze and resolve CSS rendering performance bottlenecks?

**How to analyze and resolve CSS rendering performance bottlenecks?**
- *考察点:性能分析。*
#10 高级 CSS

如何用媒体查询和容器查询实现自适应组件?

How to implement adaptive components with media queries and container queries?

**How to implement adaptive components with media queries and container queries?**
- *考察点:自适应组件。*
#11 高级 CSS

如何用BEM和CSS变量实现可维护的大型项目样式架构?

How to implement maintainable large project style architecture with BEM and CSS variables?

**How to implement maintainable large project style architecture with BEM and CSS variables?**
- *考察点:架构设计。*
#12 高级 CSS

如何用CSS实现复杂的SVG动画?

How to implement complex SVG animations with CSS?

**How to implement complex SVG animations with CSS?**
- *考察点:SVG动画。*
#13 高级 CSS

如何用CSS实现多层次的视觉动效?

How to implement multi-level visual effects with CSS?

**How to implement multi-level visual effects with CSS?**
- *考察点:视觉动效。*
#14 高级 CSS

如何用CSS提升首屏渲染速度?

How to improve first-screen rendering speed with CSS?

**How to improve first-screen rendering speed with CSS?**
- *考察点:首屏优化。*
#15 高级 CSS

如何用CSS与框架(如React/Vue)结合实现动态样式?

How to combine CSS with frameworks (like React/Vue) to implement dynamic styles?

**How to combine CSS with frameworks (like React/Vue) to implement dynamic styles?**
- *考察点:框架结合。*
#16 高级 CSS

如何用CSS实现复杂的3D变换效果?

How to implement complex 3D transformation effects with CSS?

**How to implement complex 3D transformation effects with CSS?**
- *考察点:3D变换。*
#17 高级 CSS

如何设计一个可维护的CSS架构?有哪些设计原则?

How to design a maintainable CSS architecture? What are the design principles?

**How to design a maintainable CSS architecture? What are the design principles?**
- *考察点:CSS架构设计。*