Align text on both ends:
text-align:justify;
text-justify:inter-ideograph;
Clear float:
.clear{clear:both;line-height:0;height:0;font-size:0;}
Clear floating pseudo-class:
.clearfix: after{content: ".";display: block;height: 0;clear: both;visibility: hidden;}
Set to prevent words from breaking
word-break : keep-all
Characters wrap
word-break:keep -all;word-break:break-all;word-wrap:break-word
Use line-height to center vertically
line-height:24px;/*When using a fixed-width container and needing a row to be vertically centered, use Line-height is enough (the height is the same as the parent layer container), more vertical centering summary can be seen here.
*/
Clear container float
#main {overflow:hidden;}
Don’t let links wrap
a {white-space:nowrap;}
Always tell Firefox to show scroll bars
html {overflow:-moz-scrollbars-vertical;}
Center the block element horizontally
body, html {min-height:101%;} or margin:0 auto;
Hide the scroll bar of Explorer textarea
textarea {overflow:auto;}
Settings Print pagination
h2 {page-break-before:always ;}/*Set paging when printing web pages*/
Remove the dotted box on the link
a,area { blr:expression(this.onFocus=this.blur()) }
:focus { -moz-outline- style: none; }
The simplest CSS reset
* {margin: 0; padding: 0}/*Use this attribute with caution. Although it can eliminate the default attribute, it has an impact on browser rendering and is not good in semantic expression. . */
Print text after the image is entered requires attributes
img{vertical-align:top;}
Transparent attribute
filter:alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5;
cursor:hand;
Change the mouse into the shape of a hand
cursor:hand;