


A complete collection of web design css style codes, come and collect it!
Reduce a lot of unnecessary code, html css can easily layout the web page. Friends, keep it in your collection~
# 1. Text settings
1,font-size: font size parameter
font-style: font format
font-weight: font thickness
color: parameter
2. Hyperlink settings
text-decoration: 参数
- underline: underline the text
- overline: underline the text
- line-through: strikethrough the text
- blink: use Text flashing
- none: Do not display any of the above effects
3. Background
background-color: 参数
background-image: url(URL)
- URL is the background The storage path of the image, none means none.
background-repeat: 参数
- no-repeat: Do not repeat the tiled background Picture
- repeat-x: Make the picture tile only in the horizontal direction
- repeat-y: Make the picture tile only in the vertical direction Paving
background-attachment: 参数
- fixed: Web page scrolling When the web page is scrolled, the background image remains fixed relative to the browser window
- scroll: When the web page is scrolled, the background image scrolls together relative to the browser window
##4. Block
1. Word spacing
word-spacing: 间隔距离
2. Letter spacing
letter-spacing: 字母间距
text-align: 参数
Parameter value:
- left: left alignment
- right:right alignment
- center:center alignment
- justify:relative left and right alignment
- 4. Vertical alignment
- vertical-align: Parameters
- top:Top alignment
- bottom: bottom alignment
- text-top: relative text top alignment
- text-bottom: relative text bottom alignment
- baseline: Baseline alignment
- middle: Center alignment
- sub: Display in the form of subscript
- super: Display in the form of superscript
- 5. Text indentation
text-indent: 缩进距离
12px is equivalent to a text distance of
6. Space
white-space: 参数
- normal normal
- pre reserved
- nowrap no line break
- 7. Display style
display: 参数
- block: block-level element, both before and after the object Line break
height 高度 width 宽度 padding 内边距 margin 外边距 float(浮动):可以让块级元素在一行中排列,例如横向菜单。 clear 清除浮动 六、边框 1、样式 边框样式的参数: none:无边框 dotted:边框为点线 dashed:边框为长短线 solid:边框为实线 double:边框为双线 2、宽度 3、颜色 七、列表 不同浏览器的列表符可能不相同,可能会影响到网页,所以网页中的列表大多都是由背景图片显示。 控制用户界面的样式 八、鼠标 CSS鼠标形状参数表: 鼠标形状:CSS代码border-style 参数
border-width:参数
border-color:参数
list-style-type:列表样式
cursor:鼠标形状参数
style="cursor:hand" 手形
style="cursor:crosshair" 十字形
style="cursor:text" 文本形
style="cursor:wait" 沙漏形
style="cursor:move" 十字箭头形:
style="cursor:help" 问号形
style="cursor:e-resize" 右箭头形
style="cursor:n-resize" 上箭头形
style="cursor:nw-resize" 左上箭头形
style="cursor:w-resize" 左箭头形
style="cursor:s-resize" 下箭头形
style="cursor:se-resize" 右下箭头形
style="cursor:sw-resize" 左下箭头形
总结:
用常用HTML+CSS的代码做一个漂亮简单的个人网页,小伙伴来试试。
推荐学习:CSS视频教程
The above is the detailed content of A complete collection of web design css style codes, come and collect it!. 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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

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



Using Bootstrap in Vue.js is divided into five steps: Install Bootstrap. Import Bootstrap in main.js. Use the Bootstrap component directly in the template. Optional: Custom style. Optional: Use plug-ins.

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

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.

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

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 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-

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.

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