提示:html和css知识
关于c v工程师的特点:能自己打代码。看清网页逻辑
前言
提示:以下是本篇文章正文内容,下面案例可供参考
一、搜狗html index
二、使用步骤
1.c v
代码如下(示例):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>搜狗输入法-首页</title>
<link rel="icon" href="images/favicon.ico">
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<!-- heade 开始-->
<div class="header">
<div>
<ul>
<li>输入法手机版</li>
<li>|</li>
<li>输入法Mac版</li>
<li>|</li>
<li>输入法企业版</li>
<li>|</li>
<li>输入法Linux版</li>
<li>|</li>
<li>五笔输入法</li>
<li>|</li>
<li>输入法开放平台</li>
</ul>
<ul>
<li>登入</li>
<li>|</li>
<li>注册</li>
</ul>
</div>
</div>
<!-- heade结束 -->
<!-- logo 开始 -->
<div class="logo">
<a href="#"></a>
<!-- a是行级标签 -->
<div> 找皮肤...</div>
</div>
<!-- logo结束 -->
<!-- nav开始 -->
<div class="nav">
<ul>
<li>首页</li>
<li>皮肤</li>
<li>词库</li>
<li>皮肤表情开放平台
<!-- <img src="images/10113.png" alt=""> -->
</li>
<li>帮助</li>
<li>升级日志</li>
</ul>
</div>
<!-- nav结束 -->
<!-- banner 开始 -->
<div class="banner">
<div>
<div>
<div><p>更新日期 : 2023-03-07新版特性</p>
<p>支持:XP / WIN7 / WIN8 / WIN10</p>
<img src="images/xia.png" alt="">
</div>
<div>
<img src="images/er.png" alt="">
<img src="images/down.png" alt="">
</div>
</div>
</div>
</div>
<!-- banner结束 -->
<!-- skin 开始 -->
<div class="skin">
<div class="skin_left">
<div></div>
<ul class="skinList">
<li>
<img src="images/1.jpg" alt="">
<a href="#"></a>
<span>相濡以沫-心痛到无法呼吸</span>
</li>
<li>
<img src="images/2.gif" alt="">
<a href="#"></a>
<span>野萌君·哈哈哈</span>
</li>
<li>
<img src="images/3.png" alt="">
<a href="#"></a>
<span>种星星的人</span>
</li>
<li>
<img src="images/4.png" alt="">
<a href="#"></a>
<span>瓶子里の精灵</span>
</li>
<li>
<img src="images/5.png" alt="">
<a href="#"></a>
<span>尖叫鸡</span>
</li>
<li>
<img src="images/6.png" alt="">
<a href="#"></a>
<span>阿肥宅</span>
</li>
</ul>
<div></div>
<!-- 词汇推荐开始 -->
<ul class="extend">
<li>
<a href="#"><img src="./images/dictrec_1modao.jpg" alt=""></a>
<p>魔道祖师</p>
</li>
<li>
<a href=""><img src="./images/dictrec_1dacaiwu.gif" alt=""></a>
<p>财务专用</p>
</li>
<li>
<a href=""><img src="./images/dictrec_1jiada.jpg" alt=""></a>
<p>贾平凹作品</p>
</li>
<li>
<a href=""><img src="./images/dictrec_1daf.jpg" alt=""></a>
<p>TFboys粉丝专用</p>
</li>
<li>
<a href=""><img src="./images/dictrec_1douluoda.jpg" alt=""></a>
<p>斗罗大陆</p>
</li>
<li>
<a href=""><img src="./images/dictrec_1dai.jpg" alt=""></a>
<p>红楼梦</p>
</li>
</ul>
<!-- 词汇推荐结束 -->
<div></div>
<div></div>
</div>
<div class="skin_right">
<div class="ads">
<img src="./images/barrier_free_banner.png" alt="" width="266px" height="185px">
</div>
<div class="add">
<img src="./images/hhh.jpg" alt="" width="266px" height="244px">
</div>
<div class="adc">
<img src="./images/focus_ewn.png" alt="" width="266px" height="150px">
</div>
<div class="adz">
<img src="./images/23.png" alt="" width="300px" height="186px">
</div>
</div>
</div>
<!-- skin结束 -->
<!-- extend拓展功能开始 -->
<!-- 结束 -->
<!-- 词汇推荐开始 -->
<div class="pp">
<p><span><img src="./images/wei.png" alt=""></span>皮肤表情词库合作、品牌合作、输入法合作 邮箱:hci_bd@tencent.com</p>
<p><span><img src="./images/wei.png" alt=""></span>使用问题用户反馈 邮箱:IMETS@tencent.com</p>
<p>© 2023 SOGOU.COM 京ICP备11001839号-1 免责声明 隐私政策</p>
<P>北京搜狗科技发展有限公司</P>
<P>联系地址:北京市海淀区中关村东路1号院9号楼搜狐网络大厦9层01房间</P>
<p>产品介绍:AI语音专家,让您的打字更简洁,更智能</p>
</div>
</body>
</html>
//css部分
*{
margin: 0;
padding: 0;
}
.header{
width:100%;
height:30px;
background-color: #f8f8f8;
border: 1px solid gainsboro;
}
.header>div{
width:1000px;
height:30px;
/* outline:1px solid red; */
margin: 0 auto;
display: flex;
}
.header>div>ul:nth-child(1){
width:800px;
height:30px;
line-height: 30px;
list-style: none;
display: flex;
justify-content: start;
font-size: 7px;
color: #7a7a7a;
font-family: '宋体';
}
.header>div>ul:nth-child(1)>li{
margin-left: 20px;
}
.header>div>ul:nth-child(2){
width:200px;
height:30px;
line-height: 30px;
color: #7a7a7a;
list-style: none;
display: flex;
justify-content: end;
font-size: 7px;
font-family: '宋体';
}
.header>div>ul:nth-child(2)>li{
margin-left: 20px;
}
li:hover{
color:#f50;
cursor: pointer;
}
.logo{
width:1000px;
height:70px;
/* outline: 1px solid red; */
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
/* 弹性布局 默认排列方式在同一行显示
center 水平垂直对齐,
*/
}
.logo>a{
display: block;
width: 193px;
height:40px;
background: url("../images/logo.png") no-repeat;
}
.logo>div{
width: 325px;
height:32px;
line-height: 32px;
font-size: 14px;
background: url("../images/search_box.png") no-repeat;
}
.nav{
width:100%;
height:35px;
background-color: #fc6b2d;
}
.nav>ul{
list-style: none;
width:1000px;
height:35px;
margin: 0 auto;
display: flex;
align-items: center;
}
.nav>ul>img{
position: absolute;
right:25px ;
top: -15px;
}
.nav>ul>li{
height:35px;
line-height: 35px;
width: 78px;
text-align: center;
color:#fff;
margin-right: 30px;
font-size: 18px;
}
.nav>ul>li:hover{
height:35px;
line-height: 35px;
width: 78px;
text-align: center;
color:#fff;
background-color: #e94f0d;
cursor: pointer;
/* 鼠标变成手 */
/*
用 &:nth-child(){
}
*/
}
.nav>ul>li:nth-child(1){
height:35px;
line-height: 35px;
width: 78px;
text-align: center;
background-color: #e94f0d;
}
.nav>ul>li:nth-child(4){
height:35px;
line-height: 35px;
width: 186px;
text-align: center;
/* background-color: #e94f0d; */
position: relative;
}
.nav>ul>li:last-child{
height:35px;
line-height: 35px;
width: 114px;
text-align: center;
/* background-color: #e94f0d; */
}
.banner{
width:100%;
height:400px;
background:url(../images/bac.png) no-repeat center center #f9533f ;
}
.banner>div{
width:1000px;
height: 400px;
margin: 0 auto;
/* border:1px solid red; */
position: relative;
}
.banner>div>div{
position: absolute;
right:0;
bottom:48px;
width: 368px;
height:115px;
/* background-color: skyblue; */
display: flex;
}
.banner>div>div>div:nth-child(1){
/* border :1px solid red; */
width:292px;
float: left;
height:120px;
}
.banner>div>div>div:nth-child(2){
/* border :1px solid red;
*/
width:80px;
float: right;
margin-right: 20px;
}
.banner>div>div>div:nth-child(1)>p{
opacity: 0.8;
color: 27364D;
font-size: 13px;
font-family: '微软雅黑','Arial';
width:240px;
margin-bottom: 10px;
}
.skin{
width:1000px;
height:900px;
/* outline: 1px solid red; */
margin: 0 auto;
}
.skin>.skin_left{
width:730px;
height:760px;
float: left;
}
.skin_left>div:nth-child(1){
width: 710px;
height:30px;
background: url(../images/skin.png) no-repeat;
}
.skin_left>.skinList{
width: 730px;
height:500px;
/* outline: 1px solid blue; */
list-style: none;
}
.skin_left>.skinList>li{
width:333px;
height:157px;
background: url(../images/skin_border.png) no-repeat;
/* margin-left: 20px; */
margin-top: 10px;
float: left;
position: relative;
text-align: center;
}
.skin_left>.skinList>li>img{
margin-top: 8px;
}
.skin_left>.skinList>li:nth-child(2n){
margin-left: 20px;
}
.skin_left>.skinList>li>a{
display: block;
width:72px;
height:27px;
/* background-color: rebeccapurple; */
position: absolute;
right: 0;
bottom: 0;
}
.skin_left>.skinList>li>a:hover{
background: url(../images/skin_download_hover.png) no-repeat;
}
.skin_left>.skinList>li>span{
font-size: 12px;
position: absolute;
left:5px;
bottom:10px;
}
.skin_left>div:nth-of-type(2){
width: 710px;
height:30px;
background: url(../images/title2.png) no-repeat;
margin-top: 25px;
}
.skin_left>div>.extend{
width: 730px;
height: 130px;
margin-top: 14px;
}
.skin_left>.extend>li{
list-style: none;
width:90px;
text-align: center;
float: left;
padding: 15px;
}
.skin_left>.extend>li>a:nth-child(1){
display: block;
width: 90px;
height:90px;
margin-left: 5px;
/* background: url(../images/dictrec_1modao.jpg); */
}
.skin_left>.extend>li>p{
width: 76px;
height: 23px;
margin: 10 0 0 7px;
font-size: 12px;
color:#7a7a7a;
list-style: none;
}
.skin_left>.extend>li>p:hover{
color: #f9533f;
cursor: pointer;
}
.skin>.skin_right{
width:266px;
height:856px;
/* outline: 1px solid green; */
float: right;
}
.skin>.skin_right>.ads{
width:266px;
height: 185px;
/* background: url(../images/barrier_free_banner.png) no-repeat; */
margin-top: 30px;
}
.skin>.skin_right>.add{
width:266px;
height: 244px;
/* background: url(../images/barrier_free_banner.png) no-repeat; */
margin-top: 30px;
}
.skin>.skin_right>.adc{
width:266px;
height: 150px;
/* background: url(../images/barrier_free_banner.png) no-repeat; */
margin-top: 30px;
}
.skin>.skin_right>.adz{
width:266px;
height:186px;
/* background: url(../images/barrier_free_banner.png) no-repeat; */
margin-top: 10px;
}
.pp{
width:1000px;
height:330px;
text-align: center;
margin: 0 auto ;
color: #666666;
height: 260px;
background: #f5f5f5;
width: 100%;
border: 0;
}
.pp>p{
margin-top: 20px;
}
.pp>p:hover{
color:#fc6b2d;
cursor: pointer;
}
2.图片官网检查自取
总结
同志还需努力...