李德鹏网站页面布局精编版

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width" initial-scale="1.0" />//加入自适应当前屏幕0
<title></title>
<style type="text/css">
a{
margin-left: 100px; line-height: 90px;
}
.one{
width: 100%; background-color: palegreen;//one中不给高度,如果给爷没有效果,因为包含one的div已经是自适应高度
}
body{
height: 100px;
}
*{
margin: 0px; padding: 0px;
}
.two{
height: 40%; width: 100%;
}
.a{
height: auto;
}
</style>

</head>
<body>
<div class="a">//再加一层div让其自适应高度
<div class="one">
<ul >
<a href="#">淘宝</a>
<a href="#">天猫</a>
<a href="#">谷歌</a>
<a href="#"> 搜狗</a>
</ul>
</div>
</div>

<div class="two"><div class="two1">
<img src="$RBV2OYV.jpg" height="200px" width="200px" />
<img src="$RH2S7NX.jpg" height="200px" width="200px"/>
<img src="$RQIH74U.jpg " height="200px" width="200px" />
<img src="$RY4QK7H.jpg" height="200px" width="200px" />
</div>
<div class="tow2"></div></div>
<div class="three"></div>
</body>
</html>

时间: 2024-08-01 10:46:23

李德鹏网站页面布局精编版的相关文章

李德鹏分页和数据库使用

index.php <?php include "page.php"; include "common.php";include "db_config.php"; $new=new page(4,1);// $sql="select id,username from user "; if(!$sql){ echo "查看失败"; } $re=mysql_query($sql); if($re){ ec

李德鹏信息安全加密解密

比如下面这个例子:原理是先把值用session存起来然后再给cookie加密,最后面解密达到信息安全的目的 关键步骤 1:$secureKey = 'imooc'; //加密密钥2:$str = serialize($userinfo); //将用户信息序列化 3:$str = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($secureKey), $str, MCRYPT_MODE_ECB));//字符串以 BASE64 编码[然后

清理系统垃圾代码 李德鹏

@echo off echo 正在清除系统垃圾文件,请稍等...... del /f /s /q %systemdrive%\*.tmp del /f /s /q %systemdrive%\*._mp del /f /s /q %systemdrive%\*.log del /f /s /q %systemdrive%\*.gid del /f /s /q %systemdrive%\*.chk del /f /s /q %systemdrive%\*.old del /f /s /q %sy

李德鹏的微信开发路第一天

<?php//输出音乐和视频/** * wechat php test */ //define your tokendefine("TOKEN", "weixin");$wechatObj = new wechatCallbackapiTest();$wechatObj->responseMsg(); class wechatCallbackapiTest{ public function valid() { $echoStr = $_GET["

(精编版)SSH网上商城项目讲解+源码

SSH网上商城(  源  码 密码:fnox) 1.1 前台需求分析: 1.1.1 用户模块: 注册: 1.前台JS校验: 2.使用AJAX完成对用户名异步校验: 3.后台Struts2校验: 4.验证码: 5.发送激活邮件: 6.将用户信息存入到数据库: 激活: 1.点击链接完成激活: * 根据激活码,查询数据库中是否有该用户: * 如果有:激活.(将激活码字段清空.) * 修改用户的状态: 登录: 1.输入用户名和密码:(数据校验.) 2.用户名和密码都正确同时用户状态必须是激活状态: 退出

2016年下半年软考网络工程师真题解析精编版

magento目录结构精编版

1 /app – 程序根目录 2 3 /app/etc – 全局配置文件目录 4 5 /app/code – 所有模块安装其模型和控制器的目录 6 7 /app/code/core – 核心代码或经过认证得模块,如果要升级不要这里的代码 8 9 /app/code/community – 社区版的模块目录10 11 /app/code/local – 定制代码目录12 13 /app/code/core/Mage? – magento默认命名空间14 15 /app/code/core/Mage

冒泡排序-精编版

1 #include <stdio.h> 2 /************************************************************** 3 * BubbleSort:冒泡排序实现函数(从小到大 * 4 * 参数:a[]:排序前的整型数组 * 5 * n:数组元素数 * 6 * 返回值:无 * 7 ***************************************************************/ 8 void BubbleSor

CSS3与页面布局学习笔记(四)——页面布局大全

一.负边距与浮动布局 1.1.负边距 所谓的负边距就是margin取负值的情况,如margin:-100px,margin:-100%.当一个元素与另一个元素margin取负值时将拉近距离.常见的功能如下: 1.1.1.向上移动 当多个元素同时从标准流中脱离开来时,如果前一个元素的宽度为100%宽度,后面的元素通过负边距可以实现上移.当负的边距超过自身的宽度将上移,只要没有超过自身宽度就不会上移,示例如下: <!DOCTYPE html> <html> <head> &