web前端|html教程
div+css布局之padding和margin的使用,及自适应100%的宽度
web前端-html教程
整体效果图:
程序多开器源码,vscode配置打开浏览器,ubuntu训练死机,清空tomcat日志命令,豌豆爬虫图片,king php,潜江服装seo推广怎么做lzw
话不多说,大家自己看,相信会有帮助
二手车源码下载,vscode标签提示插件,ubuntu 更新git,tomcat限值文件访问,易安卓sqlite增删改查,苟着苟着就渐渐无敌了爬虫,php mysql对象,seo优化提升流量排名,网站程序组成,ecshop 手机模板目录lzw
黑色背景部分宽度为1002px;加上两边红色的1px边框宽度,整个宽度是1004px
安娜的小窝
安娜的小窝
彩虹云任务已授权源码,vscode打开工具侧栏,ubuntu 蓝牙 掉线,tomcat的配置参数,爬虫抓取雪球,php中strpos,宁波seo怎么做推广排名lzw
下面是css样式部分
body { margin : 0 ; padding : 0 ; background : #fff ; }
div { color : #333 ; font-family : “verdana”,”arial”, “sans-serif”,”宋体” ; font-size : 12px ; }
.cBody { width : 100% ; text-align : center ; margin-top : 5px ; }
.Top_Bg { width : 1002px ; border : solid 1px red ; background-color : #000000 ; color : #FFFFFF ; text-align : center ; margin : 0 auto ; }
.BabyContent { width : 1004px ; margin : 0 auto ; }
/* 左边部分 */
.Babyleft { width : 202px ; float : left ; }
.lefttop { width : 202px ; height : 2px ; background : url(/images/BLeftTop.jpg) no-repeat ; overflow : hidden ; }
.leftbg { width : 196px ; background : url(/images/BLeftBg.jpg) repeat-y ; padding : 1px 4px 2px 2px ; }
.LbgTop { width : 100% ; background : url(/images/warror.jpg) no-repeat 3px 5px ; background-color : #FF6600 ; height : 20px ; }
.bName { margin-top : 10px ; margin-left : 5px ; margin-bottom : 5px ; margin-right : 5px ; border-bottom : solid 1px #ccc ; text-align : left ; padding-left : 10px ; padding-bottom : 5px ; color : #FF3300 ; font-size : 16px ; position : static ; float : inherit ; }
.leftbuttom { width : 202px ; height : 2px ; background : url(/images/BLeftButtom.jpg) no-repeat ; overflow : hidden ; }
/* 左边部分 */
.Babycenter { width : 328px ; float : left ; margin-left : 2px ; height : 200px ; border : solid 1px #ccc ; }
.Babyright { width : 466px ; float : left ; margin-left : 2px ; border : solid 1px #ccc ; }
如果觉得《div+css布局之padding和margin的使用 及自适应100%的宽度【HTML】》对你有帮助,请点赞、收藏,并留下你的观点哦!