1, form, a line of text, divided into 2 columns or three columns, one column or two columns of fixed width, the last column 100% length using display:table
Outer structure Style:
- display:table;
- width:100%;
- Box-sizing:border-box;
Memory Fixed width style:
- Display:table-cell;
- width:65px;
Memory 100% Width Style:
- width:100%;
- Display:table-cell;
2, page scrolling smoothly, add style (mobile phone side slide good)
- -webkit-overflow-scrolling:touch;
3, the page smooth scrolling, using CSS (from the right side, mainly transform style)Original style:
- position: fixed;
- background: #FFFFFF;
- width: 100%;
- padding: 0px;
- top: 0px;
- z-index: 99999;
- height: 100%;
- transform: translatex (100%);
- -webkit-transition: - Webkit-transform 0.5s ease-in-out;
-
Original style +show:
- -webkit-transform:translatex (0%);
- Transform:translatex (0%);
4. Select drop-down box does not show arrows and borders on the phone
- background-color:transparent;
- Background-image:none;
- -webkit-appearance:none;
- Box-shadow:none;
5, picture background image useBackground-size:contain;
6, text can not be selected in the body settings-webkit-user-select:none;
7. Linear gradient
- width:1px;
- height:410px;
- Float:left;
- margin-left:69px;
- background:-moz-linear-gradient (Top,rgba (255,255,255,0.1), #fff, Rgba (255,255,255,0.1));
- background:-webkit-linear-gradient (Top,rgba (255,255,255,0.1), #fff, Rgba (255,255,255,0.1));
8, the bottom edge of the mobile phone list is set to 0.5px, can not be directly set to border-bottom:0.5px solid #eee; Use the following methodsUL Li:after {
- content: "";
- Position:absolute;
- left:0;
- top:0;
- width:200%;
- height:1px;
- border-bottom:1px solid #eee;
- -webkit-transform-origin:0 0;
- transform-origin:0 0;
- -webkit-transform:scale (0.5);
- Transform:scale (0.5);
}9, when clicked to make element without background, not highlight-webkit-tap-highlight-color: transparent;
Common CSS3 Styles