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

dw网页制作教程个人网站推广是什么意思

dw网页制作教程个人网站,推广是什么意思,网站建设后台管理,医药网站前置审批目录 示例1 (中间自适应 示例2(中间自适应 示例3(中间自适应 示例4 (自适应成比 示例5(左中定宽,右边自适应 示例6(中间自适应 示例7(中间自适应 示例8(中间定宽…

目录

示例1 (中间自适应

示例2(中间自适应

示例3(中间自适应

示例4 (自适应成比

示例5(左中定宽,右边自适应

示例6(中间自适应

示例7(中间自适应

示例8(中间定宽,两边自适应


css实现两栏:CSS | CSS实现两栏布局(左边定宽 右边自适应,左右成比自适应)-CSDN博客

<div class="father"><div class="box1">盒子1</div><div class="box2">盒子2</div><div class="box3">盒子3</div>
</div>

注意:示例没有设置高度,由文字支撑

示例1 (中间自适应

压缩过程

 .father{margin: 20px;padding: 0;}.box1,.box2{width: 300px;background-color:rebeccapurple;}.box1{float: left;}.box2{float: right;}.box3{background-color: rgb(216, 252, 216);/* 减去两边盒子宽度 */width: calc(100%-600px);}

示例2(中间自适应

    .father{width: 100%;}.box1{width:300px;background-color: rebeccapurple;float: left;}.box2{width: calc(100% - 600px);background-color: rgb(216, 252, 216);float: left;}.box3{width: 300px;background-color: rebeccapurple;float: left;}

示例3(中间自适应

.box1{width: 300px;background-color:rebeccapurple;display: inline-block;}.box2{width: calc(100% - 600px);background-color:  rgb(216, 252, 216);display: inline-block;}.box3{width: 300px;background-color: rebeccapurple;display: inline-block;} 

示例4 (自适应成比

flex: 1;放大且缩小并等分所有空间

  .father{display: flex;}.box1{background-color: rebeccapurple;/* flex:1 === flex: 1 1 0px *//* 当flex为1时,占满剩余宽度的一份(一份是多少取决于总宽度-固定宽度之和/几份*所占份数) */flex: 1;}.box2{background-color: rgb(216, 252, 216);flex: 1;}.box3{background-color: rebeccapurple;flex: 1;}

示例5(左中定宽,右边自适应

注意:该盒子定宽后也会随父盒子挤压而变小

 .father{display: flex;}.box1{width: 100px;background-color: rebeccapurple;}.box2{width: 100px;background-color: rgb(216, 252, 216);}.box3{flex: 1;background-color: rebeccapurple;}

示例6(中间自适应

 .box1 {float: left;width: 200px;background-color: rebeccapurple;
}
.box2 {width: 200px;background-color: rgb(216, 252, 216);float: right;
}
.box3 {margin-left: 200px;margin-right: 200px;background-color: green;
}

示例7(中间自适应

  .father {display: table;
}
.box1 {width: 200px;display: table-cell;background-color: red;
}
.box2 {display: table-cell;background-color: blue;
}
.box3 {display: table-cell;width: 200px;background-color: green;
}

示例8(中间定宽,两边自适应

    .father{display: flex;}.box1{background-color: rebeccapurple;flex: 1;}.box2{background-color: rgb(216, 252, 216);/* flex: 1; */width: 300px;}.box3{background-color: rebeccapurple;flex: 1;}

示例9(中间自适应

左右定宽也会被等比缩小,因为flex: 1;放大且缩小并等分所有空间

 .father{display: flex;}.box1{background-color: rebeccapurple;width: 300px;}.box2{background-color: rgb(216, 252, 216);flex: 1;}.box3{background-color: rebeccapurple;width: 300px;}

http://www.gaoduandz.com/news/101.html

相关文章:

  • 黃冈建设厅官方网站百度百家
  • 科技网站设计公司有哪些朝阳网站seo
  • 属于外贸型的b2b电子商务网站产品推广方案ppt
  • 24小时在线观看seo外链推广工具下载
  • 邯郸中材建设有限责任公司网站网站营销网站营销推广
  • 松江做网站需要多少钱网络营销就是seo正确吗
  • 临沂企业建站系统模板手机如何建网站
  • 学做网站用什么服务器吉林百度seo公司
  • vue做的网站百度抓取女教师遭网课入侵直播录屏曝
  • 做网上商城网站哪家好专业代写软文
  • 海尔电子商务网站建设情况石家庄疫情
  • 接效果图做网站八零云自助建站免费建站平台
  • 网站建设公司怎样做账深圳全网推互联科技有限公司
  • 汕头网站建设百度快照是干什么的
  • 做网站客服去哪应聘贵阳百度seo点击软件
  • 怎样在国外网站上做宣传电子商务营销策划方案
  • 网站关键词怎么做免费seo软件推荐
  • 电商网站支付体系建设特点抖音seo什么意思
  • 校园网上超市网站建设哪些浏览器可以看禁止访问的网站
  • 盘锦网站建设 盘锦建站推广 盘锦建站创建软件平台该怎么做
  • 上海c网站建设谷歌关键词排名查询
  • 客户如何找到做网站宣传的律师郑州seo技术服务顾问
  • 网站建电子商务营销的概念
  • 网页设计图片怎么放进去济宁seo优化公司
  • vs做网站标签输出语言aso优化教程
  • 设计师经常上的网站网站设计开发网站
  • flash 做网站教程百度收录工具
  • 私有云网站建设新品牌推广方案
  • 网站建设及网页设计教案seo外链工具有用吗
  • 找人建设网站关键词排名查询api