The new properties of css3 include: word-wrap, word-break, text-shadow, border-radius, box-shadow, border-image, background-size, transform, transition, etc.

The operating environment of this tutorial: Windows 7 system, CSS3 version, Dell G3 computer.
css3 new attributes
1. CSS3 text effect:
hanging-punctuation: Specifies whether punctuation characters are located outside the wireframe.
punctuation-trim: Specifies whether to trim punctuation characters.
text-align-last: Sets how to align the last line or the line immediately before a forced newline.
text-emphasis: Applies an emphasis mark and the emphasis mark's foreground color to the element's text.
text-justify: Specifies the alignment method used when text-align is set to "justify".
text-outline: Specifies the outline of the text.
text-overflow: Specifies what happens when text overflows the containing element.
text-shadow: Adds a shadow to text.
text-wrap: Specifies the line wrapping rules for text.
word-break: Specifies the line breaking rules for non-Chinese, Japanese and Korean text.
word-wrap: Allows long indivisible words to be split and wrapped to the next line.
2. CSS3 border:
border-radius: CSS3 rounded border.
box-shadow: Used to add a shadow to the box.
border-image: CSS3 border image, you can use images to create borders.
3. CSS3 background:
background-size: The attribute specifies the size of the background image.
background-origin: The attribute specifies the positioning area of the background image.
background-clip: Specifies the drawing area of the background.
(Learning video sharing: css video tutorial)
4. CSS3 conversion:
transform Applies a 2D or 3D transformation to an element.
transform-origin allows you to change the position of the element being transformed.
transform-style specifies how nested elements are displayed in 3D space.
perspective Specifies the perspective effect of 3D elements.
perspective-origin specifies the bottom position of the 3D element.
backface-visibility Defines whether the element is visible when not facing the screen.
5. CSS3 transition:
Add effects to elements when they transform from one style to another.
transition: shorthand attribute, used to set four transition attributes in one attribute.
transition-property: Specifies the name of the CSS property that applies the transition.
transition-duration: Defines how long the transition effect takes. The default is 0.
transition-timing-function: Specifies the time curve of the transition effect. The default is "ease".
transition-delay: Specifies when the transition effect starts. The default is 0.
6. CSS3 animation: Through CSS3, we can create animations, which can replace animated images, Flash animations and JavaScript in many web pages.
@keyframes: Specifies animation.
animation: Shorthand property for all animation properties, except animation-play-state property.
animation-name: Specifies the name of the @keyframes animation.
animation-duration: Specifies the seconds or milliseconds it takes for the animation to complete one cycle. The default is 0.
animation-timing-function: Specifies the speed curve of animation. The default is "ease".
animation-delay: Specifies when the animation starts. The default is 0.
animation-iteration-count: Specifies the number of times the animation is played. The default is 1.
animation-direction: Specifies whether the animation plays in reverse in the next cycle. The default is "normal".
animation-play-state: Specifies whether the animation is running or paused. The default is "running".
animation-fill-mode: Specifies the state outside the object animation time.
7. CSS3 multiple columns:
column-count: Specifies the number of columns by which elements should be split.
column-fill: Specify how to fill the column
column-gap: Specify the gap between columns
column-rule: Abbreviation for all column-rule-* attributes
column-rule-color: Specifies the color of the border between two columns
column-rule-style: Specify the style of the border between two columns
column-rule-width: Specify the thickness of the border between two columns
column-span: Specify how many columns the element spans
column-width: Specify the width of the column
columns: abbreviation for setting column-width and column-count
8. CSS3 user interface:
resize: The attribute specifies whether the element can be resized by the user.
box-sizing: Property allows you to define in an exact way how specific content will be adapted to a certain area.
outline-offset: Property offsets the outline and draws the outline beyond the edge of the border.
appearance: Allows you to make an element look like a standard user interface element.
icon: Provides creators with the ability to set elements to their icon equivalents.
nav-down: Specifies where to navigate when using the arrow down navigation key.
nav-index: Specifies the order of the Tabs of an element.
nav-left: Specifies where to navigate using the left arrow navigation keys.
nav-right: Specifies where to navigate using the right arrow navigation keys.
nav-up: Specifies where to navigate when using the Arrow Up navigation key.
For more programming-related knowledge, please visit: Programming Video! !
The above is the detailed content of What are the new attributes in css3. For more information, please follow other related articles on the PHP Chinese website!
The Benefits of React: Performance, Reusability, and MoreApr 15, 2025 am 12:05 AMReact’s popularity includes its performance optimization, component reuse and a rich ecosystem. 1. Performance optimization achieves efficient updates through virtual DOM and diffing mechanisms. 2. Component Reuse Reduces duplicate code by reusable components. 3. Rich ecosystem and one-way data flow enhance the development experience.
React: Creating Dynamic and Interactive User InterfacesApr 14, 2025 am 12:08 AMReact is the tool of choice for building dynamic and interactive user interfaces. 1) Componentization and JSX make UI splitting and reusing simple. 2) State management is implemented through the useState hook to trigger UI updates. 3) The event processing mechanism responds to user interaction and improves user experience.
React vs. Backend Frameworks: A ComparisonApr 13, 2025 am 12:06 AMReact is a front-end framework for building user interfaces; a back-end framework is used to build server-side applications. React provides componentized and efficient UI updates, and the backend framework provides a complete backend service solution. When choosing a technology stack, project requirements, team skills, and scalability should be considered.
HTML and React: The Relationship Between Markup and ComponentsApr 12, 2025 am 12:03 AMThe relationship between HTML and React is the core of front-end development, and they jointly build the user interface of modern web applications. 1) HTML defines the content structure and semantics, and React builds a dynamic interface through componentization. 2) React components use JSX syntax to embed HTML to achieve intelligent rendering. 3) Component life cycle manages HTML rendering and updates dynamically according to state and attributes. 4) Use components to optimize HTML structure and improve maintainability. 5) Performance optimization includes avoiding unnecessary rendering, using key attributes, and keeping the component single responsibility.
React and the Frontend: Building Interactive ExperiencesApr 11, 2025 am 12:02 AMReact is the preferred tool for building interactive front-end experiences. 1) React simplifies UI development through componentization and virtual DOM. 2) Components are divided into function components and class components. Function components are simpler and class components provide more life cycle methods. 3) The working principle of React relies on virtual DOM and reconciliation algorithm to improve performance. 4) State management uses useState or this.state, and life cycle methods such as componentDidMount are used for specific logic. 5) Basic usage includes creating components and managing state, and advanced usage involves custom hooks and performance optimization. 6) Common errors include improper status updates and performance issues, debugging skills include using ReactDevTools and Excellent
React and the Frontend Stack: The Tools and TechnologiesApr 10, 2025 am 09:34 AMReact is a JavaScript library for building user interfaces, with its core components and state management. 1) Simplify UI development through componentization and state management. 2) The working principle includes reconciliation and rendering, and optimization can be implemented through React.memo and useMemo. 3) The basic usage is to create and render components, and the advanced usage includes using Hooks and ContextAPI. 4) Common errors such as improper status update, you can use ReactDevTools to debug. 5) Performance optimization includes using React.memo, virtualization lists and CodeSplitting, and keeping code readable and maintainable is best practice.
React's Role in HTML: Enhancing User ExperienceApr 09, 2025 am 12:11 AMReact combines JSX and HTML to improve user experience. 1) JSX embeds HTML to make development more intuitive. 2) The virtual DOM mechanism optimizes performance and reduces DOM operations. 3) Component-based management UI to improve maintainability. 4) State management and event processing enhance interactivity.
React Components: Creating Reusable Elements in HTMLApr 08, 2025 pm 05:53 PMReact components can be defined by functions or classes, encapsulating UI logic and accepting input data through props. 1) Define components: Use functions or classes to return React elements. 2) Rendering component: React calls render method or executes function component. 3) Multiplexing components: pass data through props to build a complex UI. The lifecycle approach of components allows logic to be executed at different stages, improving development efficiency and code maintainability.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 English version
Recommended: Win version, supports code prompts!

SublimeText3 Chinese version
Chinese version, very easy to use

Dreamweaver Mac version
Visual web development tools






