css| Skills | solve | problems
DIV CSS Web page making tips: There are more than two floating time list markers in the Li solution to the problem.
More than two float floats are defined in Li, which has a left float. The list tag in IE runs to the right and defines one line in ff. Look at the following code:
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "//www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd" > <ptml xmlns= "//www.w3.org/1999/xhtml" ><pead><meta http-equiv= "Content-type" content=; Charset=utf-8 "/><title> Untitled document </title><style>ol {list-style:inside;} span {display:block; float:left; margin:0 6px;} </style></pead><body><ol><li><span><a href= "#" > Text </a></span ><span><a href= "#" > Text </a></span><span><a href= "#" > Text </a></span ></li></ol></body></ptml>
[Ctrl + A ALL SELECT hint: You can modify some of the code, and then run]
The list of Li in IE, set the width, the serial number becomes 1; After the float, there is no serial number, FF is different. IE thinks: The list does not have the ordinal count in the entity. In practical application, should avoid such a problem!