Home > Web Front-end > HTML Tutorial > Why can't I use dl dt dd to achieve this_html/css_WEB-ITnose

Why can't I use dl dt dd to achieve this_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:17:15
Original
1287 people have browsed it



The following is the html code:



< meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Untitled Document




< ;dl class="toping">
                                                                                                    
                                                                                            ;/a>
                                                                                                                                       >Gods and Demons
                                                   /dd & gt;
& lt; dd & gt; | & lt;/dd & gt;
& lt; dd & gt;
& lt; a href = "" & lt;/a & gt;
& lt; a href = "" "" "" "" "" >2011
                                              


                     ;                                                               >Others
                                         3 years old
                                                                                                                                                                                                                                                      🎜>                                                                                                                       & gt; View all & lt;/a & gt;
& lt;/dd & gt;
& lt;/dl & gt;



& lt;/body & gt;
& lt;/html & gt;

The following is the css code:
.toping{
width:800px;
height:28px;
margin:0 auto 10px;
line-height:28px;
border:1px solid rgb(247,218,248);
}
dt{
float:left;
padding-left:10px;
}
dd{
float: left;
display:inline;
margin:0px 5px;
color:rgb(155,155,155);
}
Why the result becomes like this, as follows, I am using ie8, FireFox, Sogou, obviously using float:left, it seems to have no effect


Reply to discussion (solution)

<style rel="stylesheet" type="text/css" href="Untitled-4.css"></style>
Copy after login

Change to
<link href="Untitled-4.css" rel="stylesheet" type="text/css">
Copy after login

This is relatively simple and basic.

You can check whether the structure is reasonable and whether the style is reasonable.

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