Home  >  Article  >  Web Front-end  >  为什么用dl dt dd实现不了这个_html/css_WEB-ITnose

为什么用dl dt dd实现不了这个_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:17:151231browse



下面是html代码:
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



无标题文档





     
热门搜索:

     

         美少女
         热血
         搞笑
         机战
         战争
         耽美
         神魔
         冒险
         亲子
     

     
|

     

         2012
         2011
         更早
     

     
|

     

         日本
         中国
         其他
     

     
|

     

         0-3岁
         4-6岁
         7-12岁
         13-17岁
         18岁以上
         查看全部
     


  
         
         



以下是css代码:
.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);
}
为什么会结果会变成这样,如下,我用的是ie8,FireFox,搜狗,明明使用了float:left,好像没作用


回复讨论(解决方案)

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

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

这都是比较简单、基础。

可以看结构是否合理,样式写的是否合理。

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