如图所示,不知道问题出在哪里了,样式表代码如下:@charset "gb2312";/* CSS Document */*{ margin:0; padding:0; font-size:12px;} body{ backgrond-color:#F5F5F5;}.wrap{ width:1000px; margin:0 auto;}.top{ width:100%; height:27px; background:url(../img/top_bg.jpg) repeat-x; } .top_content{ width:1000px; margin:0 auto; line-height:27px;}.top_content li{ list-style-image:url(../img/li_bg.gif); float:right; width:70px;}.top_content a:link,.top_content a:visited{ color:#8e8e8e; text-decoration:none;}.top_content a:hover,.top_content a:active{ color:#900; text-decoration:none;}.logo{ height:80px; background-color:#FFF}.logo_left{ float:left; width:200px; display: inline;}.logo_right{ float:right; width:300px; }
2 回答
qq_嘞怎_0
TA贡献5条经验 获得超1个赞
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>Demo</title> </head> <style> *{ margin: 0; padding: 0; font-size: 14px; } .top{ background: #ddd; width: 100%; height: 27px; } .top_content{ width: 1000px; line-height: 27px; margin: 0 auto; background: orange; } li{ float: right; width: 70px; list-style: none; } </style> <body> <div class="top"> <div class="top_content"> <ul> <li>11</li> <li>22</li> <li>33</li> <li>44</li> </ul> </div> </div> </body> </html>
没找着啥问题,我试了一下没有问题
- 2 回答
- 0 关注
- 1385 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消