Home > Article > Web Front-end > What are the common styles of html pages?
This time I will bring you what are the public styles of html pages, what are the precautions when using the public styles of html pages, the following is a practical case, let's take a look.
body, div, ul, li, h1, h2, h3, h4, h5, h6, p, dl, dt, dd, ol, form, input, textarea, th, td, select { margin: 0; padding: 0; } * { box-sizing: border-box; } table{ border-collapse:collapse; } body { font-family: "Microsoft YaHei"; } ul, li { list-style: none; } a { text-decoration: none; color: #232323; } input, textarea { outline: none; box-shadow: none; } textarea { resize: none; overflow: auto; } .clearfix { zoom: 1; } .clearfix:after { content: "."; width: 0; height: 0; visibility: hidden; display: block; clear: both; } .fl { float: left } .fr { float: right } .tl { text-align: left; } .tc { text-align: center } .tr { text-align: right; } .ellipse { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to other related articles on the php Chinese website!
Related reading:
Examples of HTML text formatting detailed explanation
Special characters of html-css3 content: "Special symbols" should How to use
#How to use Html web table structured markup
The above is the detailed content of What are the common styles of html pages?. For more information, please follow other related articles on the PHP Chinese website!