不含类解决最后一个li边距问题

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh" dir="ltr">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="generator" content="Editplus4PHP" />
    <meta name="keywords" content="Leo, HentStudio, Editplus4PHP, LeoPHP" />
    <meta name="description" content="LeoPHP - Powered by HentStduio" />
    <meta name="author" content="Leo" />
    <!--
    <script type="text/javascript" src="js/common.js"></script>
    <link rel="stylesheet" type="text/css" href="css/style.css" />
    -->
    <link rel="shortcut icon" href="images/favicon.ico" />
    <title>Example | xHTML1.0</title>
    <style type="text/css">
    *{margin:0;padding:0;}
    .dome{width:640px; height:200px; margin:20px auto; border:1px solid #f00;}
    .dome ul{margin-left:-80px;}
    .dome ul{display:inline-block;}
    .dome ul{display:block;}
    .dome ul li{list-style:none; width:98px; height:150px;border:1px solid #000; background:#e0e0e0; float:left; margin-left:80px;display:inline;}
    </style>
</head>
<body>
    <div class="dome">
        <ul>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>
</body>
</html>
posted @ 2014-11-25 12:19  rose_sun  阅读(103)  评论(0编辑  收藏  举报