Home  >  Article  >  Web Front-end  >  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
WBOYOriginal
2016-06-24 12:17:151260browse



The following is the html code:
2b68512eae77256b3a72fc9a402719f3
68ccb177a5de0ef9542dde7d35bae727
93f0f5c25f18dab9d176bd4f6de5d30e
e487370a058720f3593d960fb2d8f75b
b2386ffb911b14667cb8f0f91ea547a7Untitled Document6e916e0f7d1e588d4f442bf645aedb2f
ef1112b19b9e8171d3a1b4a10eb90e44
531ac245ce3e4fe3d50054a55f265927
9c3bca370b5104690d9ef395f2c5f8d1

6c04bd5ca3fcae76e30b72ad730ca86d
< ;dl class="toping">
                                                                                                    
                                                                                            ;/a>
                                                                                                                                       >Gods and Demons5db79b134e9f6b82c0b36e0489ee08ed
                                                   /dd & gt;
& lt; dd & gt; | & lt;/dd & gt;
& lt; dd & gt;
& lt; a href = "" & lt;/a & gt;
& lt; a href = "" "" "" "" "" >20115db79b134e9f6b82c0b36e0489ee08ed
                                              67bc4f89d416b0b8236eaa5f43dee742
                     ;                                                               >Others5db79b134e9f6b82c0b36e0489ee08ed
                                         3 years old5db79b134e9f6b82c0b36e0489ee08ed
                                                                                                                                                                                                                                                      🎜>                                                                                                                       & 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>

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

This is relatively simple and basic.

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

Statement:
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