Home >Web Front-end >HTML Tutorial >Ask the experts about a relatively weak css problemWhy can't it be covered_html/css_WEB-ITnose
CSS HTML
<body><div class="containter"> <ul class="faceul"> <li> <a target="_blank" href="http://www.google.com.hk"><img src="images/google.png" /></a> </li> <li> <a target="_blank" href="http://www.baidu.com"><img src="images/baidu.png" /></a> </li> <li> <a target="_blank" href="http://www.iqiyi.com"><img src="images/iqiyi.png" /></a> </li> </ul></div></body>
/* CSS Document */body {margin:0; padding: 2px;}.containter{ margin:0; padding:0; border:solid #3399FF 1px; height:225px; width:auto;}.faceul{border: 0;}.faceul li{ list-style-type:none; float:left;}.faceul li a{height:223px;}.faceul li a img{border:none;}.faceul li a:hover{border:dashed 1px #F00;}
.faceul li a{height:223px; display:inline- block;
}
Thank you! Sure enough, the effect is achieved. Can you explain the meaning of this code?
Thank you! Sure enough, the effect is achieved. Can you explain the meaning of this code?
http://www.w3school.com.cn/css/pr_class_display.asp