


Web design css style special effects code collection (recommended collection)
This article will share with you some commonly used CSS style codes. Using these codes, you can easily make the style of the page more beautiful. Friends, please collect it! !
css specified font style collection
Font attribute: (font)
size{font-size:
#Style
(italic) italic;
(italic) normal;
(normal)line-height
(normal) Unit: PX, PD, EMThickness
(bold font) lighter;
( thin body) normal;
(normal)variant
( Small caps) normal;
(normal)uppercase
(first letter is capitalized) uppercase;
(uppercase) lowercase;
(lowercase) none;
(none)Modification
(underline) overline;
(overline) line-through;
(strikethrough) blink;
(blink)Commonly used fonts:
(background)Background attributes:
Color
Picture
Repeat
Scroll
(Fixed) scroll;
(Scroll)Position
(Horizontal) top;
(Vertical)Abbreviation method
Abbreviation·This often appears when reading code, so study it carefully*/
Block attribute:
This is the first time I know this attribute, so I need to study it more*/
Letter-spacing
Value/*
This attribute seems to be useful, please practice */
alignment
(Align both ends) left;
(Align left) right;
(Align right) center;
(Centered)Indent
Vertical alignment
( Baseline) sub;
(subscript) super;
(subscript) top; text-top; middle; bottom; text-bottom;
Word spacing
Valuespace
(reserved) nowrap;
(no line breaks )Display
(block) inline;
(embedded) list-item;
(list item) run-in;
(additional part) compact;
(compact) marker;
(marker) table; inline-table; table-raw-group; table-header-group; table-footer-group; table-raw; table-column-group; table-column; table-cell; table-caption;
(Table title) /*display
The understanding of the attributes is very vague*/
Box attributes:
Order: top right, bottom left Border attributes:
(dotted line) dashed;
(dashed line) solid; double;
(double line) groove;
(groove line) ridge;
( Ridge) inset;
(dent) outset;
Border width
Abbreviation method
Abbreviation*/
List attribute:
Type
(dot) circle;
(circle) square;
(square) decimal;
(number) lower-roman;
(small Roman code number) upper-roman; lower-alpha; upper-alpha;
Position
Image
Positioning attribute: (Position)
1 2 3 4 |
|
One CSS text attribute:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
1 2 3 4 5 6 7 8 |
|
1 2 3 4 5 6 |
|
1 2 3 4 5 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
1 2 3 4 5 6 7 8 |
|
1 2 3 4 5 6 7 |
|
Text box
按钮
复选框
选择钮
多行文字方块
下拉式菜单 选项1选项2
八、CSS边界样式:
1 2 3 4 |
|
CSS 属性: 字体样式(Font Style)
序号 中文说明 标记语法
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
文本样式(Text Style)
序号 中文说明 标记语法
1 2 3 4 5 6 |
|
背景样式
序号 中文说明 标记语法
1 2 3 4 5 6 |
|
框架样式(Box Style)
序号 中文说明 标记语法
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
分类列表
序号 中文说明 标记语法
1 2 3 4 5 6 7 |
|
css布局九决,学css不再难简单的几句CCS布局口诀,就可以写出精简,标准的样式。
一、IE边框若显若无,须注意,定是高度设置已忘记;
二、浮动产生有缘故,若要父层包含住,紧跟浮动要清除,容器自然显其中;
三、三像素文本慢移不必慌,高度设置帮你忙;
四、兼容各个浏览须注意,默认设置行高可能是隐患;
五、独立清除浮动须铭记,行高设无,高设零,设计效果兼浏览;
六、学布局须思路,路随布局原理自然直,轻松驾驭html,流水布局少hack,代码清爽,兼容好,友好引擎喜欢迎。
七、所有标签皆有源,只是默认各不同,span是无极,无极生两仪—内联和块级,img较特殊,但也遵法理,其他只是改造各不同,一个*号全归原,层叠样式理须多练习,万物皆规律。
八、图片链接排版须小心,图片链接文字链接若对齐,padding
和vertical-align:middle
要设定,虽差微细倒无妨。
九、IE浮动双边距,请用display:inline
拘。
推荐学习:CSS视频教程
The above is the detailed content of Web design css style special effects code collection (recommended collection). For more information, please follow other related articles on the PHP Chinese website!

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

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



How to use the Bootstrap button? Introduce Bootstrap CSS to create button elements and add Bootstrap button class to add button text

To adjust the size of elements in Bootstrap, you can use the dimension class, which includes: adjusting width: .col-, .w-, .mw-adjust height: .h-, .min-h-, .max-h-

Answer: You can use the date picker component of Bootstrap to view dates in the page. Steps: Introduce the Bootstrap framework. Create a date selector input box in HTML. Bootstrap will automatically add styles to the selector. Use JavaScript to get the selected date.

There are several ways to insert images in Bootstrap: insert images directly, using the HTML img tag. With the Bootstrap image component, you can provide responsive images and more styles. Set the image size, use the img-fluid class to make the image adaptable. Set the border, using the img-bordered class. Set the rounded corners and use the img-rounded class. Set the shadow, use the shadow class. Resize and position the image, using CSS style. Using the background image, use the background-image CSS property.

There are two ways to create a Bootstrap split line: using the tag, which creates a horizontal split line. Use the CSS border property to create custom style split lines.

To set up the Bootstrap framework, you need to follow these steps: 1. Reference the Bootstrap file via CDN; 2. Download and host the file on your own server; 3. Include the Bootstrap file in HTML; 4. Compile Sass/Less as needed; 5. Import a custom file (optional). Once setup is complete, you can use Bootstrap's grid systems, components, and styles to create responsive websites and applications.

To verify dates in Bootstrap, follow these steps: Introduce the required scripts and styles; initialize the date selector component; set the data-bv-date attribute to enable verification; configure verification rules (such as date formats, error messages, etc.); integrate the Bootstrap verification framework and automatically verify date input when form is submitted.

Bootstrap provides a simple guide to setting up navigation bars: Introducing the Bootstrap library to create navigation bar containers Add brand identity Create navigation links Add other elements (optional) Adjust styles (optional)
