今天做网页是老是不懂怎么实现ul的横向排列和去掉li那个烦人的点,现在找到方法了,做个笔记:
代码如下:
#ul {
float:left;
}
#ul li {
float:left;
list-style:none;
}
顺便拓展一下li的list-style:
代码如下:
ul {
list-style:square inside url(.../.img);
}
ul {
list-style:circle;
}
ol {
list-style:upper-roman;
}
ol {
list-style:lower-alpha;
}
再写个今天看到的东西,是关于dl,dt,dd的,其实就是类似于子类的,我比较少见到各个网页上用: