First, the phone interface to create the bottom of the action bar.
1 <style>2 . Opers{3 position:Absolute;4 Bottom:0px;5 Left:0px;6 Right:0px;7 Height:3rem;8 Background-color:#fbfbfb;
Display:flex;
Display:-webkit-box;9 }
. opers a:before{
Font-size:1.25rem;
Display:block;
}
. opers a{
Flex:1;
Text-align:center;
-webkit-box-flex:1;
Font-size:0.75rem;
}
Ten . List{ One position:Absolute; A Top:1.5rem; - Left:0; - Right:0; the Bottom:3rem; - Background-color:#fefefe; - Overflow:Hidden; - } + - </style> + A <Divclass= "Opers"> at <a>New Folder</a> - <a>Copy</a> - <a>Delete</a> - </Div>
CSS Flexbox (Scalable box model): For the scene, the size of the container is variable, in the container inside the child nodes, but also with the changes in the container, size adjustment and order changes, and can automatically fill the container,
Telescopic container, telescopic project, spindle and direction
Second, using Webfont to implement the action bar icon
Image vectorization, you can infinitely stretch, by modifying the size of the font-size, you can modify the size of the picture, modify the Font-color color, you can modify the color of the picture.
Website with Webfont custom icons: http://fontello.com
Download the selected icon to introduce the Fontello.css file,
@font-face{font-family:' Fontello ';src:url ('.. /font/fontello.eot?83914508 ');src:url ('.. /font/fontello.eot?83914508#iefix ') format (' Embedded-opentype '), url ('.. /font/fontello.woff?83914508 ') format (' Woff '), url ('.. /font/fontello.ttf?83914508 ') format (' TrueType '), url ('.. /font/fontello.svg?83914508#fontello ') format (' SVG ');Font-weight:Normal;Font-style:Normal;}/*Chrome hack:svg is rendered more smooth in Windozze. 100% Magic, uncomment if you need it.*//*Note, that would break hinting! In other os-es font would be is not as sharp as it could is*//*@media screen and (-webkit-min-device-pixel-ratio:0) {@font-face {font-family: ' Fontello '; Src:url ('.. /font/fontello.svg?83914508#fontello ') format (' SVG '); }}*/[class^= "icon-"]:before, [class*= "icon-"]:before{font-family:"Fontello";Font-style:Normal;Font-weight:Normal;/*Font Smoothing. that is taken from Twbs*/-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:Grayscale;/*Uncomment for 3D effect*/ /*text-shadow:1px 1px 1px rgba (127, 127, 127, 0.3);*/}. Icon-plus:before{content:' \e800 '; }/*"'*/. Icon-attention-circled:before{content:' \e801 '; }/*"'*/. Icon-trash-empty:before{content:' \e802 '; }/*"'*/
Open the demo.html file to find the class name.
Mobile Phone page Operation bar creation and the use of Webfont