![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网站前端
ahuiok
不小心
展开
-
如何对齐文本与文本输入筐
<img id="_23_98_Open_Image" onclick="function onclick(){this.style.display=none; document.getElementById(_23_98_Open_Text).style.display=none; document.getElementById(_23_98_Closed_Image原创 2008-01-25 12:53:00 · 717 阅读 · 0 评论 -
ff下为什么父容器的高度不能自适应
ff下为什么父容器的高度不能自适应DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">meta http-equiv="Content-Type" content="text/html; charset=gb2312" /原创 2008-01-25 12:31:00 · 815 阅读 · 0 评论 -
如何垂直居中文本
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><img id="_204_278_Op原创 2008-01-25 12:50:00 · 575 阅读 · 0 评论 -
上div与下div边距的包含关系
页面中,上div的下边距 margin-bottom 为50px. 下div的上边距 margin-top:80px. 实际显示只有80px,原因是下div的上边距包含了上div的下边距。同理:如果上div的下边距为80px,下div的上边距为50px,那两个div之间的距离也为80px.总结:出现两个div都设置了 margin的上下边距时,这两个div之间的距离不是累加而是取边距设置的比较大原创 2008-01-30 17:49:00 · 3211 阅读 · 0 评论