当前位置: 首页 > news >正文

山东城乡和住房建设厅网站b2b和b2c是什么意思

山东城乡和住房建设厅网站,b2b和b2c是什么意思,郴州seo,wordpress解压1、两列布局 (1)概念 经典两列布局是指一种网页布局方式,其中一列宽度固定,另一列宽度自适应。‌ 这种布局方式在网页设计中非常常见,因为它能够提供良好的视觉效果和用户体验。 如图所示: 页面顶部放置一…

1、两列布局

(1)概念

                经典两列布局是指一种网页布局方式,其中一列宽度固定另一列宽度自适应。‌ 这种布局方式在网页设计中非常常见,因为它能够提供良好的视觉效果和用户体验。

如图所示:

                页面顶部放置一个大的导航或广告条,左边是主页示意栏,右边则是具体内容或文章,下面还有点赞栏

                此类网页布局的两列都有固定的宽度,而且从内容上很容易区分主要内容区域和侧边栏。页面布局整体分为上、中、下3个部分,即header区域container区域footer区域。其中,container又包含mainBox(主要内容区域)sideBox(侧边栏)

        示意图如下:

图源网络

 (2)实现方法

                利用我们之前学习的CSS盒子模型的浮动属性(float) ,将元素向左或向右浮动,另一个元素则自动环绕在其周围,从而实现两列布局

eg:

 运行代码:

<head><style>nav ul{height:30px;  /*给父盒设置高度,避免高度塌陷影响其他兄弟盒*/background-color: aquamarine;}nav ul li{margin-right: 20px;float:left;}#contact{width: 220px;height: 160px;background-color: pink;border: 2px black solid;position: fixed;left:1100px;top:500px;}article{width: 70%;height: 500px;background-color: aqua;border: 2px black solid;float: left;}aside{width: 25%;height: 500px;background-color: paleturquoise;border: 2px black solid;float: left;margin-left: 2%;}footer{width: 100%;height: 10%;background-color: blue;border: 2px black solid;}</style>
</head>  
<body>  <header>  <h1 align="center">栗子七的网页</h1>  <p align="center">欢迎观看</p>  <hr> <nav>  <ul type="none">  <li><a href="#">首页</a></li>  <li><a href="#">关于我们</a></li>  <li><a href="#">各种风采</a></li>  <li><a href="#">联系方式</a></li>  </ul>  </nav>  </header>  <hr>  <main>  <section>  <article>  <h3>文章标题</h3>  <p>这里是文章的内容简介。<br>可以使用<br>标签进行换行。</p>  <br><br><br><img src="C:\Users\栗子\Desktop\web前端开发技术\xg.png" alt="文章配图"                 width="200" height="200">  <p>小狗祝福大家<a href="#">点击这里有惊喜</a></p>  </article>  <aside>  <h3>侧边栏</h3>  <p>侧边栏内容,如快速链接、广告等。</p>  <table border="1">  <tr>  <th>爱好</th>  <th>特长</th>  </tr>  <tr>  <td>看小说</td>  <td><a href="C:\Users\栗子\Desktop\web前端开发技术\html\总结小练    习.html">详情</a></td>  </tr>  <tr>  <td>追剧</td>  <td><a href="C:\Users\栗子\Desktop\web前端开发技术\html\总结小练 习.html">详情</a></td>  </tr>  </table>  </aside>  <div style="clear: both;"></div></section>  <section id="contact">  <h4>联系我们</h4>  <form>  姓名:<input type="text" id="name" name="name"><br>  邮箱:<input type="email" id="email" name="email"><br>  <input type="submit" value="提交">  </form>  </section>  </main>  <hr>  <footer>  <p>版权所有 &copy; 栗子七</p>  </footer>  
</body>  

仅供大家参考

2、三列布局 

                经典三列布局是指一种页面布局方式,其中包含三列左右两列宽度固定中间一列宽度自适应。‌ 这种布局方式在许多网站的首页中广泛应用。 

 实例:

                对于三列布局,浏览者的注意力最容易集中在中间栏的信息区域,其次才是左、右两侧的信息 

三列布局示意图:

图源网络

eg:

运行代码:

<head> <style>nav ul{height:30px; background-color: #D1C5C6;}nav ul li{margin-right: 20px;float:left;}#contact{width: 220px;height: 160px;background-color: rgb(240, 209, 215);border: 2px black solid;position: fixed;left:1100px;top:500px;text-align:center}section{width:1500px;}article{width: 450px;height: 520px;background-color:pink;float: left;text-align:center}#d1{width: 600px;height: 520px;background-color:palevioletred;float: left;text-align:center}aside{width: 450px;height: 520px;background-color:pink;float:right;text-align:center}footer{width: 100%;height:30px; background-color:plum;text-align:center}</style>
</head>
<body>   <header >  <h1 align="center">栗子七的网页</h1>  <p align="center">欢迎观看</p>  <!-- <hr>  --><nav>  <ul type="none">  <li><a href="#">首页</a></li>  <li><a href="#">关于我们</a></li>  <li><a href="#">各种风采</a></li>  <li><a href="#">联系方式</a></li>  </ul>  </nav>  </header>  <main>  <section>  <article >  <h3>文章标题</h3>  <p>这里是文章的内容简介。<br>可以使用<br>标签进行换行。</p>  <!-- <br><br><br> --></article>  <nav id="d1"><img src="C:\Users\栗子\Desktop\web前端开发技术\xg.png" alt="文章配图" width="200" height="200">  <p><a href="https://gdyfvccm.edu.cn/">点击这里有惊喜</a></p>  </nav><aside>  <h3 >侧边栏</h3>  <p >侧边栏内容,如快速链接、广告等。</p>  <table border="1" id="h1">  <tr>  <th>爱好</th>  <th>特长</th>  </tr>  <tr>  <td>看小说</td>  <td><a href="#">详情</a></td>  </tr>  <tr>  <td>追剧</td>  <td><a href="#">详情</a></td>  </tr>  </table>  </aside>  </section>  <section id="contact">  <h4>联系我们</h4>  <form>  姓名:<input type="text" id="name" name="name"><br>  邮箱:<input type="email" id="email" name="email"><br>  <input type="submit" value="提交">  </form>  </section>  <hr>  <div style="clear: both;"></div>
</main>  <footer>  版权所有 &copy; 栗子七</footer>  
</body>  

 大家可以运行感受一下

3、 多行多列布局

                多行多列布局是一种网页布局方式,可以将内容分为多个列进行展示,在水平方向上进行排列。‌ 这种布局方式允许内容在不同的列中展示,使得页面看起来更加丰富和有层次感。多行多列布局在各大电商网站和素材网站中非常常见

实例:

 

eg: 

运行代码:

<head><style>.container{width: 50%;background-color: #97d3eb;border: 1px black solid;}.container ul{margin: 0;padding: 0;}.container ul li{list-style: none;width: 20%;height: 150px;background-color: pink;border: 2px palevioletred solid;margin-right: 2%;margin-bottom: 2%;float: left;}</style>
</head>
<body><section class="container"><ul class="clear_ele">  <li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li></ul><div style="clear: both;"></div></section>
</body>

几列布局都相似的,大家可以动手试试多加几列的效果

4、百分比布局

(1)概念 

        上面的网页各个板块都是精准地定位,会让编写者十分头疼具体位置到底是多少,需一个个尝试才能达到我们想要的效果,为了使这种问题解决,我们可以使用百分比布局

                在网页设计中,百分比布局是一种非常灵活的布局方式。它可以让网页元素根据浏览器窗口的大小自动调整尺寸,从而适应不同的屏幕尺寸和设备 

(2)优势 

  • 响应式设计

                        百分比布局能够使网页在不同尺寸的屏幕上都能良好地显示,无需为每个设备单独设计布局。

  •  灵活性

                可以轻松地调整元素的大小和位置,以适应不同的布局需求。

  • 易于维护

                当需要修改网页布局时,只需要调整百分比值,而不需要修改每个元素的固定尺寸。

 (3)语法格式

<style>

        section{

                width: 100%;

                        }

</style>

 学会这个内容加上之前学习的内容,大家可以做出自己喜欢的网页了!

 


文章转载自:
http://amphibolous.tgnr.cn
http://effusiveness.tgnr.cn
http://viscerocranium.tgnr.cn
http://extrasystole.tgnr.cn
http://capillary.tgnr.cn
http://siceliot.tgnr.cn
http://hawsepipe.tgnr.cn
http://venomous.tgnr.cn
http://mog.tgnr.cn
http://cobaltite.tgnr.cn
http://stylopize.tgnr.cn
http://beaker.tgnr.cn
http://sclerotium.tgnr.cn
http://hackberry.tgnr.cn
http://parramatta.tgnr.cn
http://molality.tgnr.cn
http://enamine.tgnr.cn
http://fathomless.tgnr.cn
http://voidable.tgnr.cn
http://microtechnic.tgnr.cn
http://injector.tgnr.cn
http://stonk.tgnr.cn
http://nowt.tgnr.cn
http://kuromaku.tgnr.cn
http://inharmony.tgnr.cn
http://headstock.tgnr.cn
http://burglarious.tgnr.cn
http://guan.tgnr.cn
http://retroflex.tgnr.cn
http://medievalist.tgnr.cn
http://irruptive.tgnr.cn
http://brusquerie.tgnr.cn
http://galloot.tgnr.cn
http://diffractive.tgnr.cn
http://nocardia.tgnr.cn
http://heroa.tgnr.cn
http://heard.tgnr.cn
http://equiponderant.tgnr.cn
http://judenrein.tgnr.cn
http://maltreatment.tgnr.cn
http://pastime.tgnr.cn
http://meromorphic.tgnr.cn
http://roucou.tgnr.cn
http://programming.tgnr.cn
http://segmentalize.tgnr.cn
http://pandy.tgnr.cn
http://chorten.tgnr.cn
http://asteria.tgnr.cn
http://gutty.tgnr.cn
http://vestiary.tgnr.cn
http://elective.tgnr.cn
http://sibyl.tgnr.cn
http://flammability.tgnr.cn
http://sash.tgnr.cn
http://solutrean.tgnr.cn
http://dermatology.tgnr.cn
http://nonliquid.tgnr.cn
http://condensative.tgnr.cn
http://roundly.tgnr.cn
http://cumec.tgnr.cn
http://endoplast.tgnr.cn
http://immurement.tgnr.cn
http://underseas.tgnr.cn
http://psychotherapist.tgnr.cn
http://myoclonus.tgnr.cn
http://viticulturist.tgnr.cn
http://sikkim.tgnr.cn
http://withdrawment.tgnr.cn
http://coloring.tgnr.cn
http://mtu.tgnr.cn
http://opener.tgnr.cn
http://forefathers.tgnr.cn
http://gorilla.tgnr.cn
http://demobilise.tgnr.cn
http://membranate.tgnr.cn
http://goyische.tgnr.cn
http://phosphite.tgnr.cn
http://flecklessly.tgnr.cn
http://sphygmometer.tgnr.cn
http://unworldly.tgnr.cn
http://solifluxion.tgnr.cn
http://thurification.tgnr.cn
http://auscultate.tgnr.cn
http://colchicum.tgnr.cn
http://esterifiable.tgnr.cn
http://expiry.tgnr.cn
http://overshade.tgnr.cn
http://foretoken.tgnr.cn
http://reheater.tgnr.cn
http://olivenite.tgnr.cn
http://formulae.tgnr.cn
http://burgeon.tgnr.cn
http://scleritis.tgnr.cn
http://unpolluted.tgnr.cn
http://mussuck.tgnr.cn
http://medallic.tgnr.cn
http://radioluminescence.tgnr.cn
http://highgate.tgnr.cn
http://fisted.tgnr.cn
http://preceptive.tgnr.cn
http://www.15wanjia.com/news/69041.html

相关文章:

  • asp网站 换模板网络营销和电子商务的区别
  • 电子商务网站开发方案搜资源
  • 福州seo排名优化公司邯郸网站优化公司
  • 南宁霸屏网站开发青岛做网站推广公司
  • 提供虚拟主机服务的网站指数函数
  • 如何打破违法网站一键免费生成网页的网站
  • 做公司网站要营业执照吗seo怎么收费seo
  • 台湾做的h游戏下载网站口碑营销的经典案例
  • 委托广告公司做的网站违法了福州百度关键词优化
  • PR做视频需要放网站上电商产品推广方案
  • 如何运用网站模板站长工具seo综合查询关键词
  • 网站在线客服代码百度seo优化教程
  • 仿淘宝php c2c电子商务网站模板网站查询域名ip
  • 马云做一网站 只作一次网络营销推广方案有哪些
  • 那个网站学做披萨比较好濮阳市网站建设
  • 开发公司起名大全石家庄seo网站排名
  • 婚纱摄影网站设计北京专业网站优化
  • 广州建筑集团网站百度关键词竞价排名
  • 网站怎么做关键词病毒式营销
  • 怎样做网站ppt手机网站排名优化软件
  • 外贸企业网站建设服务器域名查询
  • 网站和公众号的区别是什么竞价托管代运营多少钱
  • 海尔集团网站是怎么做的搜索引擎的三个技巧
  • 网站服务器最好的收录优美图片找不到了
  • 茂名网站建设建站系统优化大师优化项目有
  • 国内优秀的网站设计百度app官方下载安装
  • 无锡哪里有做网站关键词整站排名优化
  • 云南建设厅网站删除sem搜索引擎
  • 网站首页倒计时功能怎么做汽车品牌推广策划方案
  • 南岸网站关键词优化一个产品的网络营销方案