首页| 新闻| 娱乐| 游戏| 科普| 文学| 编程| 系统| 数据库| 建站| 学院| 产品| 网管| 维修| 办公| 热点
好久没发了 ,今天刚学了点东东,顺便挖过来,happy一下 第一种:代码:
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”><html><head><meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ /><title></title><style type=”text/css”>.div1{width:30%;padding-bottom:32767px;margin-bottom:-32767px;float:left}.div2{width:40%;padding-bottom:32767px;margin-bottom:-32767px;float:left}.div3{width:30%;padding-bottom:32767px;margin-bottom:-32767px;float:left}</style></head><body><div style=”width:100%;overflow:hidden”><div class=”div1″ style=”background-color:Lime”>1dd</div><div class=”div2″ style=”background-color:Fuchsia”>2</div><div class=”div3″ style=”background-color:Olive”>一<br>二<br>三<br>四<br>五<br>六<br>七<br>八<br>九<br></div></div></body></html> 提示:您可以先修改部分代码再运行说实话上面一种办法,我根本不理解 第二种方法,比较好理解, 采用相对定位,背景和文字是分离的 代码
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”><html xmlns=”http://www.w3.org/1999/xhtml”><head><title>无标题页</title><style type=”text/css”>*{margin:0px; padding:0px; font-size:12px;}#container3{ width:100%;background:red;float:left;position:relative;overflow:hidden;}#container2{ width:100%;background:yellow;float:left;position:relative;right:30%;}#container1{ width:100%;background:green;float:left;position:relative;right:40%;}#container1 .content1{float:left;width:30%;position:relative;left:70%;white-space:normal; word-break:break-all;overflow:hidden;}#container1 .content2{float:left;width:40%;position:relative;left:70%;white-space:normal; word-break:break-all;overflow:hidden;}#container1 .content3{float:left;width:30%;position:relative;left:70%;white-space:normal; word-break:break-all;overflow:hidden;}</style></head><body><div id=”container3″>
练就火眼金睛 十一种常见电脑
打印机共享提示“操作无法完成
如何查找有故障的配件
回眸一笑百魅生,六宫粉黛无颜色
岁月静美,剪一影烟雨江南
芜湖有个“松鼠小镇”
小满:小得盈满,一切刚刚好!
一串串晶莹剔透的葡萄,像一颗颗宝石挂在藤
正宗老北京脆皮烤鸭
人逢知己千杯少,喝酒搞笑图集
搞笑试卷,学生恶搞答题
新闻热点
疑难解答
图片精选
DIV+CSS通用样式布局实例代码
input file(input文件域)的美化
首届世界CSS设计大赛结果揭晓
网友关注