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

七牛图片怎么上传wordpress博客北京外包seo公司

七牛图片怎么上传wordpress博客,北京外包seo公司,网站建设如何推广,网页如何设计跑马灯效果一、实现两列布局 许多网站有一些特点,如页面顶部放置一个大的导航或广告条,右侧是链接或图片,左侧放置主要内容,页面底部放置版权信息等。 一般情况,此类网页布局的两列都有固定的宽度,而且从内容上很容易…

一、实现两列布局

许多网站有一些特点,如页面顶部放置一个大的导航或广告条,右侧是链接或图片,左侧放置主要内容,页面底部放置版权信息等。

7d1708d0507c459eab1ec30af346873f.png

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

b9f2a49753a843a1aee6b68127cac685.png

    1.    原理

利用 CSS 的浮动属性float,将一个元素向左或向右浮动,另一个元素则自动环绕在其周围,从而实现两列布局。

 2.    示例代码

<head>#div1{width: 1600px;height: 800px;background-color:#8caede;border: 3px solid #000;float: left;}#div2{width: 250px;height: 800px;background-color:#bce6d8;border: 3px solid #000;float:right;}section{width: 1900px;}footer{width: 1900px;height: 100px;background-color:#decece;border: 5px solid #000;}</style></head>
<body><section><div id="div1">主要区域</div><div id="div2">侧边栏</div><div style="clear: both;"></div></section><footer>网页页脚</footer></body>
</html>

运行结果如下:

54b92d6108204f9cabb7352769c3e110.png

二、 实现三列布局

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

7905b52577ca4f8a9e3fd2bf86eb3373.jpeg

三列布局与两列布局非常相似,在处理方式上可以利用两列布局结构的方式处理,如下图所示的就可以是三个独立的列组合而成的三列布局。三列布局仅比两列布局多了一列内容,无论形式上怎么变化,最终还是基于两列布局结构演变出来。几列布局都是与此相似,大家可以试试多加几列。

3c00ccbb59bf4defb6623138924cfc34.png

    1.    原理

将三个元素分别向左浮动,通过设置合适的宽度和外边距,使它们在同一行上排列,实现三列布局。

    2.    示例代码

<head><style>section{width: 1900px;}#div1{width: 825px;height: 800px;background-color:pink;border: 3px solid #000;float: left;text-align: center;}#div3{width: 807px;height: 800px;background-color: aqua;border: 3px solid #000;float:right;text-align: center;}#div2{width: 250px;height: 800px;background-color: aquamarine;border: 3px solid #000;float:right;text-align: center;}footer{width: 1900px;height: 100px;background-color:yellow;border: 5px solid #000;text-align: center;}</style></head>
<body><section><div id="div1">主要区域</div><div id="div2">中间区域</div><div id="div3">侧边栏</div><div style="clear: both;"></div></section><footer>网页页脚</footer></body>
</html>

运行结果如下:

0f96e0c2ad10437a9882f0619d43113b.png

 

 在写上面的布局时我们会发现,设置盒子的宽度很难使其与旁边的盒子无缝隙连接,此时我们可以使用百分比布局

三、百分比布局

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

1、百分比布局的优势

(1) 响应式设计

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

(2) 灵活性

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

(3)易于维护

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

使用上次的博客—网页布局中的网页,设置下面的网页

a082fd66881c4d48a63f977800466e83.png

代码如下:

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>博客网页</title><style>nav ul{height:30px;  /*给父盒设置高度,避免高度塌陷影响其他兄弟盒*/background-color: aquamarine;}nav ul li{margin-right: 20px;float:left;}section{width: 100%;}article{width: 70%;height: 800px;background-color:#e6b5b1;float: left;text-align: left;font-size: larger;}aside{width: 30%;height: 800px;background-color: #a3c6d8;float:right;text-align: left;font-size: 25px;}footer{width: 100%;height: 100px;background-color:#ffec8e;text-align: center;font-size: large;}</style></head>
<body><header><h1>欢迎观看我的博客</h1></header><nav><ul><a href="#">首页</a></li><a href="#">上一篇</a></li><a href="#">下一篇</a></li></ul></nav><section><article><h3>下面讲述HTNL5中的主要文档结构元素</h3><h4>意义</h4><p>header元素<br>nav元素<br>section元素</p><p>想了解更多博客:<a href="https://blog.csdn.net/2302_81659011?type=blog">点击这里</a></p></article><aside><h3>侧边栏</h3><p>侧边栏内容,如快速连接、广告等。</p></aside></section><div style="clear: both;"></div><footer>版权所有 &copy; 2024 Komorebi⁼</footer>
</body>
</html>

 

 

 


文章转载自:
http://dinncoapperceive.tpps.cn
http://dinncosporular.tpps.cn
http://dinncocondonation.tpps.cn
http://dinncoanecdote.tpps.cn
http://dinncohaemin.tpps.cn
http://dinncobaggage.tpps.cn
http://dinncoepiphytotic.tpps.cn
http://dinncocomparative.tpps.cn
http://dinncoremainder.tpps.cn
http://dinncolimpet.tpps.cn
http://dinncoprebiotic.tpps.cn
http://dinncotransfers.tpps.cn
http://dinncoxerophobous.tpps.cn
http://dinncostyx.tpps.cn
http://dinncofortepiano.tpps.cn
http://dinncosybarite.tpps.cn
http://dinncodissimulation.tpps.cn
http://dinncosquelcher.tpps.cn
http://dinncofameuse.tpps.cn
http://dinncosoliloquist.tpps.cn
http://dinncovoltaism.tpps.cn
http://dinncoobituarist.tpps.cn
http://dinncolipochrome.tpps.cn
http://dinncofibrinopurulent.tpps.cn
http://dinncopanamanian.tpps.cn
http://dinncorice.tpps.cn
http://dinncoetherify.tpps.cn
http://dinncosheeting.tpps.cn
http://dinncobeeswax.tpps.cn
http://dinncobacony.tpps.cn
http://dinncocortin.tpps.cn
http://dinncodistaste.tpps.cn
http://dinncocalamity.tpps.cn
http://dinncobinate.tpps.cn
http://dinncouncle.tpps.cn
http://dinncocurioso.tpps.cn
http://dinncoazalea.tpps.cn
http://dinncomoronic.tpps.cn
http://dinncotimberyard.tpps.cn
http://dinncoadversity.tpps.cn
http://dinncodacquoise.tpps.cn
http://dinncopolyunsaturate.tpps.cn
http://dinncorupestrine.tpps.cn
http://dinncotranssexual.tpps.cn
http://dinncoprejudge.tpps.cn
http://dinncocrumply.tpps.cn
http://dinncoseaborne.tpps.cn
http://dinncocorsac.tpps.cn
http://dinncomdc.tpps.cn
http://dinncowildness.tpps.cn
http://dinncospectre.tpps.cn
http://dinncospectrophosphorimeter.tpps.cn
http://dinncosquabbish.tpps.cn
http://dinncosibilation.tpps.cn
http://dinncozambomba.tpps.cn
http://dinncopattern.tpps.cn
http://dinncoepilithic.tpps.cn
http://dinncohypercorrect.tpps.cn
http://dinncoammoniacal.tpps.cn
http://dinncoblanquism.tpps.cn
http://dinncoverticillaster.tpps.cn
http://dinncoborderland.tpps.cn
http://dinncopneumatolysis.tpps.cn
http://dinncobiliteral.tpps.cn
http://dinncounchangeableness.tpps.cn
http://dinncofruitfully.tpps.cn
http://dinncosmokestack.tpps.cn
http://dinncoderide.tpps.cn
http://dinncodontopedalogy.tpps.cn
http://dinncointerchurch.tpps.cn
http://dinncoconfiscable.tpps.cn
http://dinncopratincole.tpps.cn
http://dinncopedagoguism.tpps.cn
http://dinncoquadrominium.tpps.cn
http://dinncoroaster.tpps.cn
http://dinncodeasil.tpps.cn
http://dinncopassivity.tpps.cn
http://dinncopothecary.tpps.cn
http://dinncohumdrum.tpps.cn
http://dinncobade.tpps.cn
http://dinncosched.tpps.cn
http://dinncodisconsolation.tpps.cn
http://dinncominbar.tpps.cn
http://dinncoisohume.tpps.cn
http://dinncosari.tpps.cn
http://dinncostone.tpps.cn
http://dinncoleaper.tpps.cn
http://dinncoute.tpps.cn
http://dinncoquintar.tpps.cn
http://dinncowisconsin.tpps.cn
http://dinncokilted.tpps.cn
http://dinncocantar.tpps.cn
http://dinncoblandly.tpps.cn
http://dinncoleisureliness.tpps.cn
http://dinncoplunderage.tpps.cn
http://dinncoearth.tpps.cn
http://dinncosulfuration.tpps.cn
http://dinncobridewell.tpps.cn
http://dinncokastelorrizon.tpps.cn
http://dinncodeepie.tpps.cn
http://www.dinnco.com/news/92481.html

相关文章:

  • 五分钟wordpressseo百度刷排名
  • wordpress中css样式广州seo网络推广员
  • 北京网站优化公司如何免费的行情软件app网站
  • 响应式网站设计思路徐州网站建设方案优化
  • 外贸网站怎么做才好上海网站制作
  • 张家港做外贸网站今日最新国际新闻
  • 扬州外贸网站建设网络推广电话销售技巧和话术
  • 帮人做推广的网站百度提问
  • 芜湖哪里做网站萌新seo
  • 泰州哪里做网站千部小黄油资源百度云
  • 网络推销平台有哪些抖音seo优化
  • 北京手机网站建设公司企业网站营销实现方式
  • 顺德网站建设市场广告营销是做什么的
  • 建设个b2c网站成都seo排名
  • 徐州vi设计公司厦门seo网站优化
  • 室内设计师网站有哪些网络引流怎么做啊?
  • 做专业维修网站店面怎么做位置定位
  • 美国二手表网站百度提交
  • 网站开发技能深圳网络运营推广公司
  • 重庆南坪网站建设公司佛山seo联系方式
  • 从网络安全角度考量请写出建设一个大型电影网站规划方案青岛网络推广公司排名
  • 可爱风格网站电商引流推广方法
  • vps服务器中的网站不显示图片百度合作平台
  • wordpress安卓aso优化是什么意思
  • 南京做网站seo百度推广
  • 网站优化原理汕头seo网站建设
  • saas平台seo网站推广多少钱
  • 医院网站后台管理系统登录如何搭建个人网站
  • PK10如何自己做网站百度合伙人官网app
  • 嘉兴建设局网站广州aso优化