web网页首页布局

news/2025/2/16 5:03:40/

效果展示:

html代码:

<!doctype html>
<html>
<head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"><title>首页</title><link type="text/css" rel="stylesheet" href="css/1.css" ><script src="./jquery-3.7.1.min.js"></script>
</head>
<body>
<div id="heada">
<!-- 导航条 --><div class="nav"><!-- 导航栏 --><ul><!-- 导航项 --><li class="navItem"><a href="#here">个人空间站</a><!--<ul class="self"><li class="pfp"><img src="pictures/myself.gif" width="50%"></li></ul>--><ul class="dropList"><li class="dropItem"><a href="#here">主页</a></li><li class="dropItem"><a href="#here">发展历程</a></li><li class="dropItem"><a href="#here">演讲力训练专家</a></li></ul></li><li class="navItem"><a href="#here">所有人可见</a><!-- 下拉菜单 --><ul class="dropList"><li class="dropItem"><a href="#here">张嘴就来”寄托的三个愿望</a></li><li class="dropItem"><a href="#here">发展历程</a></li><li class="dropItem"><a href="#here">演讲力训练专家</a></li></ul></li><li class="navItem"><a href="#here">输入暗号可见</a><!-- 下拉菜单 --><ul class="dropList"><li class="dropItem"><a href="#here">职场精英演讲力训练营</a></li><li class="dropItem"><a href="#here">总裁演讲力训练营</a></li><li class="dropItem"><a href="#here">青少年演讲力训练营</a></li><li class="dropItem"><a href="#here">演讲专题</a></li></ul></li><li class="navItem"><a href="#here">仅自己可</a><!-- 下拉菜单 --><ul class="dropList"><li class="dropItem"><a href="#here">口才树”理论体系</a></li><li class="dropItem"><a href="#here">演讲一阳指”模板</a></li><li class="dropItem"><a href="#here">三子”教育演讲体系</a></li></ul></li><li class="navItem"><a href="#here">群聊</a><!-- 下拉菜单 --><ul class="dropList"><li class="dropItem"><a href="#here">线上一对一辅导</a></li><li class="dropItem"><a href="#here">课后一对一辅导</a></li></ul></li><li class="navItem"><a href="#here">文件管理</a><!-- 下拉菜单 --><ul class="dropList"><li class="dropItem"><a href="#here">14年只专注于演讲力训练</a></li><li class="dropItem"><a href="#here">演讲力训练总裁班</a></li><li class="dropItem"><a href="#here">成功人士的演讲班</a></li></ul></li>            </ul></div> 
</div> 
<!-- 右边商标 --><div class="register"><input type="image"  class="ahead-image" src="images/搜索.png" width="25"><input type="text" class="tex"/>     <input type="image"  class="ahead-image" src="images/网页设计.png" width="25">         <input type="image"  class="ahead-image" src="images/发布.png" width="25">
<a href="../右上标/登录界面/登陆界面.html"><input type="image"  class="ahead-image" src="images/注册头像.png" width="25"><input type="image"  class="ahead-image" src="images/vip.png" width="25"><input type="image"  class="ahead-image" src="images/好友.png" width="25"><input type="image"  class="ahead-image" src="images/3.1-消息.png" width="25"><input type="image"  class="ahead-image" src="images/设置.png" width="26"><input type="image"  class="ahead-image" src="images/皮肤.png" width="25"><input type="image"  class="ahead-image" src="images/分享.png" width="25"></div>
<div id="main"><img class="c" src="images/umbrella.jpg" width="1300px" height="250px"/>
</div>
</body>
</html>

css代码:

@charset "utf-8";
/* CSS Document */*{margin:0 auto;padding:0;text-decoration:none;}body{background: url(../images/1.jpg);background-repeat: no-repeat;background-size: 100%;}#heada{width: 100%;position: absolute;top: 0;
}.nav li a{color: #000;font-size: 18px;}.nav ul{width: 1700px;}	.nav li{	color: #FFF;padding: 7px 10px;list-style: none;z-index: 999;}.nav{width: 100%;height: 39px;text-align: center;			background-color: #1f78dd;	background-color: rgba(255, 255, 255, 0.5);		}.navItem{	float: left;width: 0 auto;display: block;}.navItem:hover{background-color: #f1f0f5;color: #FFF;}.dropList{background-color:#f2f2f2;clear: both;text-align:left;position: absolute;top:38px;border:1px solid #000;border-radius:5px;display: none;width: 260px !important;}.dropItem a{color:#1e60b6;}.dropItem {margin:0px;position:static;z-index:999;border-bottom:1px solid #000;padding:5px 10px;color:#FFF;}.dropItem:hover{background-color:#eb7f0a;color: white;		}.navItem:hover .dropList{display:block;}.register{float:right;position:relative;top:5px;z-index:99px;padding:0 15px;}.ahead-image{padding:0 5px;}
/* self */	.self{background-color:#f2f2f2;clear: both;text-align:left;position: absolute;top:41px;border:1px solid #000;border-radius:5px;display: none;width: 260px !important;}.php a{color:#1e60b6;}.php {margin:0px;position:static;z-index:999;border-bottom:1px solid #000;padding:5px 0px;color:#FFF;}.php:hover{background-color:#eb7f0a;color: white;		}.self,.self img{display:block;}
/* main */#main{width:1300px;height:100vh;position: relative;top:40px;z-index:-11;background-color: rgba(255, 255, 255, 0.5)}.c{position:relative;bottom:33px;}.tex{height:20px;position:relative;bottom:5px;border-style:none;}


http://www.ppmy.cn/news/1301313.html

相关文章

【Python】数据可视化--基于TMDB_5000_Movie数据集

一、数据准备 tmdb_5000_movie数据集下载 二、数据预处理 观察数据集合情况 import pandas as pd import ast import warnings warnings.filterwarnings(ignore) # 加载数据集 df pd.read_csv(tmdb_5000_movies.csv) # 查看数据集信息 print(df.info()) 由于原数据集包含的…

boost.hana学习笔记之map

Hana是C元编程的头文件库&#xff0c;适用于类型和值的计算。 它提供的功能是成熟的Boost.MPL和Boost.Fusion库提供的功能的超集。 通过利用C11/14实现技术和习惯用法&#xff0c;Hana拥有比以前的元编程库更快的编译时间和运行时性能&#xff0c;同时显着提高了过程中的表达能…

127. 单词接龙

和433.最小基因变化这道题一样的解法。 https://blog.csdn.net/qq_43606119/article/details/135538247 class Solution {public int ladderLength(String beginWord, String endWord, List<String> wordList) {Set<String> cnt new HashSet<>();for (int …

适合PC端的7款最佳时间规划、项目管理软件

分享PC端7类主流的时间管理规划软件&#xff1a;PingCode、Worktile、Todoist、Pomodoro Timer 、Toggl等。 一、时间管理软件的类型 时间管理软件可以根据其功能和应用场景被划分为几种不同的类型。每种类型的软件都旨在帮助用户以不同的方式更有效地管理和分配他们的时间。以…

挥手告别2023,2024找回初心

原本是想在2023年12月31号写完发表出来的&#xff0c;一直拖到现在。为什么呢&#xff1f;因为我在2023年最后一个月失业了&#xff0c;虽然我没表现出来很失落&#xff0c;反而感到轻松&#xff0c;但不代表我内心不纠结、不焦虑。因为公司业务缩减了&#xff0c;应该跟大环境…

【AI视野·今日Robot 机器人论文速览 第七十一期】Fri, 5 Jan 2024

AI视野今日CS.Robotics 机器人学论文速览 Fri, 5 Jan 2024 Totally 11 papers &#x1f449;上期速览✈更多精彩请移步主页 Daily Robotics Papers Machine Learning in Robotic Ultrasound Imaging: Challenges and Perspectives Authors Yuan Bi, Zhongliang Jiang, Felix D…

原生微信小程序如何动态修改svg图片颜色及尺寸、宽高(封装svgIcon组件)解决ios不显示问题

最终效果 前言 动态设置Svg图片颜色就是修改Svg源码的path中的fill属性&#xff0c; 通过wx.getFileSystemManager().readFile读取.xlsx文件 ios不显示需要把encoding设置 binary 把文件转成base64 封装svg-icon组件 1、在项目的components下新建svg-icon文件夹&#xff0c;新…

记一次 Redis 数据库迁移

笔者通过一个 Redis 数据库迁移的例子&#xff0c;介绍了迁移脚本的执行思路。 作者&#xff1a;马文斌&#xff0c;MySQL/Redis 爱好者~ 爱可生开源社区出品&#xff0c;原创内容未经授权不得随意使用&#xff0c;转载请联系小编并注明来源。 本文约 500 字&#xff0c;预计阅…