HTML page common style (recommended)

HTML page common style (recommended)

As shown below:

XML/HTML CodeCopy content to clipboard
  1. body, div, ul, li, h1, h2, h3, h4, h5, h6, p, dl, dt, dd, ol, form, input, textarea, th, td, select {
  2. margin: 0;
  3. padding: 0;
  4. }
  5.   
  6. * {
  7. box-sizing: border-box;
  8. }
  9. table{
  10. border-collapse:collapse;
  11. }
  12. body {
  13. font-family: "Microsoft YaHei";
  14. }
  15.   
  16. ul, li {
  17. list-style: none;
  18. }
  19.   
  20. a {
  21. text-decoration: none;
  22. color: #232323;
  23. }
  24.   
  25. input, textarea {
  26. outline: none;
  27. box-shadow: none;
  28. }
  29.   
  30. textarea {
  31. resize: none;
  32. overflow:auto;
  33. }
  34.   
  35. .clearfix {
  36. zoom: 1;
  37. }
  38.   
  39. .clearfix:after {
  40. content: ".";
  41. width: 0;
  42. height: 0;
  43. visibility: hidden;
  44. display: block;
  45. clear: both;
  46. }
  47.   
  48. .fl {
  49. float: left
  50. }
  51.   
  52. .fr {
  53. float: right
  54. }
  55.   
  56. .tl {
  57. text-align: left;
  58. }
  59.   
  60. .tc {
  61. text-align: center
  62. }
  63.   
  64. .tr {
  65. text-align: right;
  66. }
  67.   
  68. .ellipse {
  69. overflow: hidden;
  70. text-overflow: ellipsis;
  71. white-space: nowrap;
  72. }

The above article on html page public style (recommended) is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM.

<<:  How to make the height of child div fill the remaining space of parent container in CSS

>>:  The button has a gray border that is ugly. How to remove it?

Recommend

How to write beautiful HTML code

What Beautiful HTML Code Looks Like How to write ...

Process parsing of reserved word instructions in Dockerfile

Table of contents 1. What is Dockerfile? 2. Analy...

MySQL 8.0.11 MacOS 10.13 installation and configuration method graphic tutorial

The process of installing MySQL database and conf...

What does the "a" in rgba mean? CSS RGBA Color Guide

RGBA is a CSS color that can set color value and ...

Build a file management system step by step with nginx+FastDFS

Table of contents 1. Introduction to FastDFS 1. I...

MySQL 20 high-performance architecture design principles (worth collecting)

Open Source Database Architecture Design Principl...

Introduction to HTML basic controls_PowerNode Java Academy

The <input> tag The <input> tag is us...

How to display small icons in the browser title bar of HTML webpage

Just like this effect, the method is also very si...

FlashFXP ftp client software registration cracking method

The download address of FlashFXP is: https://www....

Summary of solutions for MySQL not supporting group by

I downloaded and installed the latest version of ...

Detailed explanation of DOM style setting in four react components

1. Inline styles To add inline styles to the virt...

Vue Element-ui implements tree control node adding icon detailed explanation

Table of contents 1. Rendering 2. Bind data and a...

mysql row column conversion sample code

1. Demand We have three tables. We need to classi...