我发现项目ol
有左边距,但<p>This is first row</p>
没有左边距,所以这三行不能左对齐。我怎样才能让它们左对齐?谢谢!
您可以在以下位置查看结果:
或在 Dropbox 中:
https://www.dropbox.com/s/nr4bb00sd80pgl9/Mycss.PNG
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
li.A {
list-style-type: decimal;
font-weight: bold;
margin-bottom:15px;
}
li.B{
list-style-type:upper-alpha;
font-weight:normal;
margin-top:4px;
margin-bottom:4px;
}
ol.C {
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<p>This is first row</p>
<ol>
<li class="A">DIY SMS Export V1.05 has been released
<ol class="C">
<li class="B">Add the function to delete sms selected</li>
</ol>
</li>
<li class="A">DIY SMS Export V1.04 has been released
<ol class="C">
<li class="B">Add chinese language support</li>
</ol>
</li>
</ol>
</div>
</form>
</body>
</html>