Home > Web Front-end > HTML Tutorial > Ask the experts about a relatively weak css problemWhy can't it be covered_html/css_WEB-ITnose

Ask the experts about a relatively weak css problemWhy can't it be covered_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:22:13
Original
1595 people have browsed it

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>
Copy after login


/* 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;}
Copy after login

The above code will have the following effect:

The desired effect is when the mouse moves over the image When , the border of the picture is displayed as a red dotted line. Why can’t the actual effect cover?

Reply to discussion (solution)

.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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template