摘要:
1、因为网页标签与生俱来有margin,如body等,所以第一件事先将边距置为0,如下,也可先设置默认字体 *{ padding:0px; margin:0px; font_family:微软雅黑; } 阅读全文
摘要:
1、类名 .类别 例子: 查询类名为“useradd” .useradd{ margin-top:50px; margin-left:200px;} 2、属性找 例子:查询类为useradd下的input,属性为“text”。 .useradd input[type=text]{ width:400 阅读全文
摘要:
DIV+CSS clear both清除产生浮动 我们知道有时使用了css float浮动会产生css浮动,这个时候就需要清理清除浮动,我们就用clear样式属性即可实现。 clear 属性规定元素的哪一侧不允许其他浮动元素 1、clear语法:clear : none | left|right| 阅读全文