The picture into the contents of the file in

Original link: http://www.cnblogs.com/lszw/p/11040248.html

The picture into the contents of the file in

1. The need to import CSS style to the target file, the code is as follows (use only when the tutorial uses the data he used to be when you want to change the style, here record the way):

#main .logo h1 a { next / * main class file, logo layer - h1 title layers - a pattern * /   / * This is a new method for better understanding like hierarchy * /         a float: left; / * float: left * /           width: 135px; / * width: 135 pixels * /         height: 42px; / * high: 42 pixels * /         the display: inline-block; / * the display is displayed block, inline displayed inline, block block shows two properties used here, inline, block * /         line-height: 1000px; / * row height * /         overflow: hidden; / * overflow * /         background-rEPEAT: NO-rEPEAT; / * background whether to repeat not repeated * /         background-image: URL ( "../ image / 163.png"); / * background * source address / }         








 

 

Write nav navigation below

新建一个盒子 div ,在盒子里在建一个 div,给存放 logo 图标

 

转载于:https://www.cnblogs.com/lszw/p/11040248.html

Guess you like

Origin blog.csdn.net/weixin_30772261/article/details/95198289