← 返回完整题库
CSS简单

CSS3新增了哪些特性?

参考答案

  1. 选择器增强:属性选择器、:nth-child、:not、:has、:is
  2. 盒模型与背景:box-sizing、border-radius、多重背景、background-size/clip/origin、渐变
  3. 文字:text-shadow、word-wrap、@font-face、text-overflow
  4. 变换与动画:transform、transition、animation、@keyframes
  5. 布局:Flexbox、Grid、多列布局
  6. 媒体查询与响应式
  7. 颜色:rgba、hsl、currentColor
  8. 其他:filter、mask、object-fit、calc()、自定义属性(CSS 变量)、aspect-ratio、容器查询(更新层级)

本题来自 计算机知识面试题库,共 921 道题。