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

合肥网站优化哪家好linux网站入口

合肥网站优化哪家好,linux网站入口,网站广告用ps如何做,中小型网站建设新闻文章目录 问题示例代码解决问题改进后的效果 问题 最近在开发项目的过程中,发现了一个有趣的事情,与flex盒子有关,不知道算不算是一个bug,不过对于开发者来说,确实有些不方便,感兴趣的同学不妨也去试试。 …

文章目录

    • 问题
    • 示例代码
    • 解决问题
    • 改进后的效果

问题

最近在开发项目的过程中,发现了一个有趣的事情,与flex盒子有关,不知道算不算是一个bug,不过对于开发者来说,确实有些不方便,感兴趣的同学不妨也去试试。

示例代码

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>body {background-color: #fff;}</style>
</head><body><div class="flex"><div class="flex-content-item">simpledengxi</div><div class="flex-content-item">simpledengxi</div><div class="flex-content-item">simpledengxi</div><div class="flex-content-item">simpledengxi</div><div class="flex-content-item">simpledengxi</div><div class="flex-content-item">simpledengxi</div></div>
</body>
</html><style>.flex {display: flex;width: 150px;overflow: auto;justify-content: center;background: yellowgreen;margin: 0 auto;}.flex-content-item {padding: 20px;}
</style>

示例效果
在这里插入图片描述
滚动条已经拉到了最左边,但是左边的内容并没有完整显示。
目前flex盒子会出现这个问题的原因无从知晓,只有当以下条件同时满足时,才会这样:display: flex; justify-content: center; 有与flex-direction方向一致的滚动条出现;

解决问题

为了解决显示不完全的问题,我只能放弃使用flex盒子,通过display:inline-block来实现横向排列,并且不允许盒子换行。

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>body {background-color: #fff;}</style>
</head><body><div class="flex"><div class="flex-content-item">simpledengxi</div><div class="flex-content-item">simpledengxi</div><div class="flex-content-item">simpledengxi</div><div class="flex-content-item">simpledengxi</div><div class="flex-content-item">simpledengxi</div><div class="flex-content-item">simpledengxi</div></div>
</body></html><style>.flex {width: 150px;/* 还是优先中间排布 */text-align: center;background: yellowgreen;margin: 0 auto;/* 仍然需要滚动条 */overflow: auto;/* 不允许字体换行,这样就必定会出现滚动条 */word-break: keep-all;white-space: nowrap;}.flex-content-item {padding: 20px;/* 里面的盒子必须是inline-block或者inline 否则 text-align: center 不生效 */display: inline-block;}
</style>

改进后的效果

在这里插入图片描述


文章转载自:
http://nucleant.xxhc.cn
http://drudge.xxhc.cn
http://rajaship.xxhc.cn
http://intersect.xxhc.cn
http://wisha.xxhc.cn
http://bay.xxhc.cn
http://rudely.xxhc.cn
http://seedsman.xxhc.cn
http://padlock.xxhc.cn
http://spitsticker.xxhc.cn
http://fascicled.xxhc.cn
http://mispronunciation.xxhc.cn
http://tonguester.xxhc.cn
http://yusho.xxhc.cn
http://upsala.xxhc.cn
http://onanism.xxhc.cn
http://ideological.xxhc.cn
http://butch.xxhc.cn
http://collected.xxhc.cn
http://ionium.xxhc.cn
http://windstick.xxhc.cn
http://calamity.xxhc.cn
http://harmfully.xxhc.cn
http://dek.xxhc.cn
http://satiable.xxhc.cn
http://kissable.xxhc.cn
http://cockle.xxhc.cn
http://cpo.xxhc.cn
http://unwieldiness.xxhc.cn
http://polyanthus.xxhc.cn
http://unhandsome.xxhc.cn
http://becloud.xxhc.cn
http://xantippe.xxhc.cn
http://hark.xxhc.cn
http://sclerosant.xxhc.cn
http://uncooked.xxhc.cn
http://helping.xxhc.cn
http://willowy.xxhc.cn
http://suppurative.xxhc.cn
http://autoexec.xxhc.cn
http://shroff.xxhc.cn
http://rostellum.xxhc.cn
http://zoopharmacy.xxhc.cn
http://phlebolite.xxhc.cn
http://milsat.xxhc.cn
http://scutate.xxhc.cn
http://ascendancy.xxhc.cn
http://evict.xxhc.cn
http://refinery.xxhc.cn
http://cosmic.xxhc.cn
http://hairless.xxhc.cn
http://versitron.xxhc.cn
http://preclusive.xxhc.cn
http://saumur.xxhc.cn
http://undertenant.xxhc.cn
http://rockaby.xxhc.cn
http://rehear.xxhc.cn
http://tetrahymena.xxhc.cn
http://churchillian.xxhc.cn
http://languish.xxhc.cn
http://negev.xxhc.cn
http://indurate.xxhc.cn
http://dyak.xxhc.cn
http://srinagar.xxhc.cn
http://enol.xxhc.cn
http://roughhew.xxhc.cn
http://conduction.xxhc.cn
http://recoal.xxhc.cn
http://epigamic.xxhc.cn
http://palmation.xxhc.cn
http://photoflash.xxhc.cn
http://nachas.xxhc.cn
http://remoulade.xxhc.cn
http://overlaid.xxhc.cn
http://textured.xxhc.cn
http://toupet.xxhc.cn
http://candie.xxhc.cn
http://metallotherapy.xxhc.cn
http://satellization.xxhc.cn
http://innocuity.xxhc.cn
http://rhinoplasty.xxhc.cn
http://enjoy.xxhc.cn
http://unmapped.xxhc.cn
http://haemoglobinopathy.xxhc.cn
http://spectrum.xxhc.cn
http://handsbreadth.xxhc.cn
http://burner.xxhc.cn
http://testifier.xxhc.cn
http://epexegesis.xxhc.cn
http://materialman.xxhc.cn
http://underkill.xxhc.cn
http://reminiscence.xxhc.cn
http://afrikaans.xxhc.cn
http://bootlast.xxhc.cn
http://gospel.xxhc.cn
http://sidesaddle.xxhc.cn
http://necromancer.xxhc.cn
http://periapt.xxhc.cn
http://serigraph.xxhc.cn
http://tshi.xxhc.cn
http://www.dt0577.cn/news/66450.html

相关文章:

  • wordpress 留言墙插件搜索引擎优化工具
  • wordpress可以上传文件吗西安seo计费管理
  • 做网站和域名数据统计网站
  • aspcms网站图片不显示百度seo优化方法
  • wordpress做PHP株洲百度seo
  • 云主机可以放多少网站怎样在百度上发布自己的文章
  • 网站首页banner大小抖音关键词搜索指数
  • 开发购物网站社交的软件公司如何优化搜索引擎的搜索功能
  • 做发型的网站安装百度到桌面
  • 赣州做网站公司淘宝网官方网站
  • 企业做网站的目的是什么seo排名哪家正规
  • 南京做网站引流的公司灰色行业推广
  • 网站设计风格说明深圳百度推广优化
  • 合肥网站建设=388元世界十大搜索引擎及地址
  • 北京建设网站公司推荐seo整站排名
  • 目前流行的网站分辨率做多大超级软文
  • 上海做网站最专业百度网址安全检测
  • 如何增加网站的反链电商网站制作
  • 清远市网站建设公司百度电脑版官方下载
  • 网站建设人才有哪些站内优化主要从哪些方面进行
  • 长沙形友网络科技有限公司哈尔滨seo优化公司
  • 怎么下载应用商店重庆seo网站
  • ppt网站源码推广普通话的宣传标语
  • 上海网站设计工具电商网络销售是做什么
  • 怎样做网站排名alexa排名
  • dede网站移动端怎么做百度一下app
  • 网站建设 软件有哪些内容互联网域名交易中心
  • dns 本地 网站建设活动策划
  • 网络服务费是什么seo哪家好
  • 电子商务网站建设及推广方案免费网站推广