HTML+CSS大作業(yè):購物商城網(wǎng)頁設(shè)計與實現(xiàn)——手機主題網(wǎng)站

一、??作品介紹

HTML實例網(wǎng)頁代碼, 本實例適合于初學HTML的同學。該實例里面有設(shè)置了css的樣式設(shè)置,有div的樣式格局,這個實例比較全面,有助于同學的學習,本文將介紹如何通過從頭開始設(shè)計個人網(wǎng)站并將其轉(zhuǎn)換為代碼的過程來實踐設(shè)計。


二、??作品效果

??視頻演示

https://live.csdn.net/v/embed/239874

(title-C126BG 手機主題 7頁 無js 帶視頻 帶報告4095字)]

?? 截圖演示

07.png
06.png
05.png
04.png
03.png
02.png
01.png


三、?? 作品代碼

??HTML代碼



<html>
<head>
<meta charset="utf-8">
<link href="css/all.css" rel="stylesheet"  media="all" type="text/css" />
<title>手機</title>
</head>
<body>
<header class=" ">
  <div class="logo"><p2>手機主題網(wǎng)站</p2></div>
  <div class="menu">
    <ul class="center clearfix">
      <li><a href="index.html">網(wǎng)站首頁</a></li>
      <li><a href="anzhuo.html">安卓手機</a></li>
      <li><a href="pingguo.html">蘋果手機</a></li>
      <li><a href="gongneng.html">手機功能</a></li>
      <li><a href="shipin.html">手機發(fā)展史</a></li>
    </ul>
  </div>
</header>
<section class="banner center"> <img src="images/banner.jpg" width="100%" /> </section>
<section class=" center">
  <div class="fu1">
    <div class="pics  scrollleft">
      <ul>
        <li> <a href="anzhuo.html">
          <p><img src="images/0.jpg" width="100%" height="310"/></p>
          <strong class="st1">安卓手機</strong> </a> </li>
        <li> <a href="pingguo.html">
          <p><img src="images/1.jpg" width="100%" height="310"/></p>
          <strong class="st2">蘋果手機</strong> </a> </li>
      </ul>
      <div class="clear"></div>
    </div>
  </div>
</section>

<div class="wenzi">
<p3>手機參數(shù)配置</p3>
</div>
<div class="jieshao">
<p class="miaoxie">
<ul>
<li>
1,CPU相當手機的大腦,有核心運算能力。強勁的CPU可以為手機帶來更高的運算能力,也會增加手機玩游戲看電影的速度體驗。CPU主要參數(shù)有核心數(shù)和主頻,當然,這些參數(shù)也不是越大越好,合理夠用即可,因為多核心高主頻也意味著更耗電。
</li><br><hr>
<li>
2,應(yīng)用程序安裝在這里面越大越好。它在智能手機的作用類似于電腦上的“內(nèi)存條”,比如在智能手機上實現(xiàn)多任務(wù)處理、粘貼和復(fù)制、運行大型游戲程序等就非常依 賴RAM內(nèi)存,通常以MB為單位來表示RAM內(nèi)存的大小,
</li><br><hr>
<li>
3,手機的屏幕材質(zhì)有很多種,屏幕最重要的參數(shù)可能就是分辨率了,現(xiàn)在大部分手機屏幕分辨率都能做到720p(1280X720),大部分旗艦機都做到了1080p(1920X1080),顯示效果非常細膩。
</li><br><hr>
<ul>
4,RAM:隨機存儲器random access memory的簡稱。存儲單元的內(nèi)容可按需隨意取出或存入,且存取的速度與存儲單元的位置無關(guān)的存儲器。這種存儲器在斷電時將丟失其存儲內(nèi)容,故主要用于存儲短時間使用的程序。
</ul><br><hr>


</p>


</div>
<footer class="end">
  <p>版權(quán)所屬&nbsp?xxx </p>
</footer>
</body>
</html>



??CSS代碼


@charset "utf-8";
/* CSS Document */
ul,li,h1,h2,h3,p{ padding:0; margin:0; list-style:none}
a{ text-decoration:none; color:#000}
body{  margin:0 auto; line-height:21px; background:#FFCC99}
.center{ width:1100px; margin:0 auto}
.clear{ clear:both}
.menu li{ list-style:none}
.logo{
    height:70px;
    width:1100px;
    
       }
p2{
    font-size:40px;
    position:absolute;
    top:20px;
    left:440px;
    font-weight:bold;
}
.wenzi{
    width:1100px;
    height:50px;
    background-color:#663333;
    margin:auto;
}
p3{
    font-size:25px;
    font-weight:bold;
    color:#FFFFFF;
    margin-left:10px;
    line-height:40px;
}
.jieshao{
    width:1100px;
    height:300px;
    background-color:#FFCC99;
    margin:auto;
}
header{ height:140px; }
.banner{ position:relative; clear:both ;  margin-top:20px}
.banner img{box-shadow: 0px 0px 5px rgba(0,0,0,0.4); border-radius:10px;}

.menu{ width:100%; text-align:center; float:left; background:#FF6633; text-align:center}
.menu li a{  display:block; padding:10px 20px; font-size:18px; color:#fff}
.menu li { display:inline-block;padding:0px 30px ;  width:149px}

.right{ font-size:18px; line-height:24px; float:right; width:500px; }
.right h2{ font-size:24px; font-weight:normal; line-height:40px}
.right h3{ font-size:20px; margin-top:40px;}
.left{  float:left; width:460px; }
.content{ clear:both;  font-size:14px; display:block ; }
.coms{ padding:30px 0}
.end{ clear:both; background:#FF6633; color:#fff; font-size:22px; padding:20px 0; margin-top:30px; text-align:center;}
.pad{ padding:5px;  display:block;margin:5px;  margin-top:20px }
.gm{ display:inline-block; text-align:center; padding:20px 0; background:#FF3300; color:#fff; border:none; font-size:18px;  margin-top:50px; width:200px;}
.imglist{ width:100%; margin:0 auto}
.imglist li{ float:left; width:245px; margin:20px ; text-align:center}
.scrollleft li{ box-shadow: 0px 0px 5px rgba(0,0,0,0.4); border-radius:10px; overflow:hidden;float:left; position:relative; width:540px; text-align:center; margin:20px 10px}
.scrollleft li strong{ position:absolute;  top:50%; width:200px; height:200px; left:50%; margin-left:-100px; margin-top:-100px; border-radius:200px; line-height:200px; font-size:30px; background:rgba(189,35,35,0.7); color:#fff}
.bar h3{ font-size:20px; color:#FF3300}

.lx{ background:#FF3300; padding:50px ; color:#fff; line-height:40px; font-size:22px}
.scrollleft li strong.st2{ background:rgba(97,53,27,0.7)}
.imglist li strong{ font-size:18px; font-weight:normal; display:block; margin-top:10px; color:#993333}
.imglist li p img{box-shadow: 0px 0px 5px rgba(0,0,0,0.4); border-radius:10px;}
.fu{ margin-left:-20px; margin-right:-20px;}
.fu1{ margin-left:-10px; margin-right:-10px;}
.title{ text-align:center; margin-top:20px; border:#FF6666 dashed 1px; font-size:24px; padding:15px 0; color:#000; font-weight:normal;  padding:10px}
.fl{ float:left}
.hei40{ height:40px}
.bck{ background:#FF3366; color:#fff; padding:0 20px; line-height:30px; display:inline-block; vertical-align:middle}
.red{ color:#FF3366}
.cs{ max-width:600px; margin:30px auto}
.cs p,.cs div{ margin:10px 0}
.bar2 span{ background:#ddd; display:inline-block; padding:10px 30px;}
.bar2{ border-bottom:#000 solid 1px; margin-bottom:30px}
.bar{  margin:15px 0px; margin-bottom:0; clear:both; color:#000; text-align:center; padding:10px 5px}
.logo{ position:relative; margin:0 auto; width:1100px}
.box{ padding:20px; border:#FF6600 dotted 2px; margin:20px 100px;}
.box h2{ padding-bottom:20px}
.cls{  margin:0 auto !important; text-align:left}
.cls input{ width:100%;}
.shu2{ border:#FF3333 solid 1px; background:#FFFFFF; border:none; color:#FF3333; padding:12px }
.shu{ width:100%; background:#FF6633; border:#FF3333 solid 1px; border:none; color:#fff; padding:12px 0}

.clearfix:after{ clear:both; display:block}

.aihao li{ margin:0 20px; clear:both; padding:20px 0}
.aihao li span{ float:right; width:57%; }
.aihao li img{ float:left; width:40%}
.aihao li span b{ font-weight:normal; display:inline-block;font-size:20px; margin-top:40px; padding:10px 0px}






四、??更多源碼

【干貨分享】自學編程的小伙伴可以前往我的 gitee 倉庫(持續(xù)更新中...)

??【web學習指南】從web基礎(chǔ)、計算機基礎(chǔ)到前端常用框架的教程,涵蓋前端大部分必備知識(學習指南 + 技術(shù)文章 + 資源分享)

Gitee倉庫地址(來個Star吧~): https://gitee.com/zhanyuqiu2022/my-app

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容