CSS Background Image settings:
<!DOCTYPE HTML><HTML><Head> <MetaCharSet= "Utf-8"> <Metaname= "Viewport"content= "Width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <title></title> <Scriptsrc= "Js/mui.min.js"></Script> <Linkhref= "Css/mui.min.css"rel= "stylesheet"/> <Scripttype= "Text/javascript"CharSet= "Utf-8">Mui.init (); </Script> <style>. Container{Background-image:URL (img/view_002.jpg);width:100%;Height:300px;Line-height:300px;text-align:Center; } </style></Head><Body> <Divclass= "Container"></Div></Body></HTML>
The preceding code inserts a background image for a DIV with a class named container, with the following effect:
Original:
Web page:
Set the style for the background picture to make it more beautiful:
/* Picture Adaptive size */ /*background-size:100% 100%;*// * Picture Center */ Background-position:center; /* Background Fill */ background-size:cover; /* Background blur * /-webkit-filter:blur (2px); }
CSS Common background settings