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

海南 网站开发太原seo按天计费

海南 网站开发,太原seo按天计费,班级网站建设主题,旅游网站设计说明书css中图片左右边距CSS保证金属性 (CSS margin property) CSS Margins are used to space around any element, for this we use margin property in the CSS. CSS边距用于在任何元素之间留出空间#xff0c;为此#xff0c;我们在CSS中使用“ margin”属性 。 S…css中图片左右边距 CSS保证金属性 (CSS margin property) CSS Margins are used to space around any element, for this we use margin property in the CSS. CSS边距用于在任何元素之间留出空间为此我们在CSS中使用“ margin”属性 。 Syntax: 句法 Element{ margin: length|auto|initial|inherit; } 保证金崩溃 (Margin Collapsing) When two margins are touching each other vertically, they are collapsed. But when they touch horizontally, they do not collapse. 当两个边距垂直相互接触时它们将被折叠。 但是当它们水平接触时它们不会塌陷。 Example: 例 !DOCTYPE html head style div { margin: 20px; } /style /head html body div Some content /div div Some more content /div /body /html Output 输出量 They will be 20px apart since vertical margins collapse over one and other. (The spacing will not be the sum of two margins.) 由于垂直边距会彼此重叠因此相距20px 。 (间距将不是两个边距的总和。) 在给定边上应用保证金 (Apply Margin on a Given Side) In CSS you can specify a given side to apply a margin too. The four properties provided for this purpose are, 在CSS中您也可以指定给定边以应用边距。 为此目的提供的四个属性是 margin-left 左边距 margin-right 右边距 margin-top 上边距 margin-bottom 底边 Example: 例 !DOCTYPE html head style #myDiv { margin-left: 30px; height: 100px; width: 100px; background-color: red; } /style /head html body div idmyDiv Some content /div /body /html Output 输出量 负边距 (Negative Margins) CSS has properties that can be set to negative values. This property can be used to overlap elements without absolute positioning. CSS具有可以设置为负值的属性。 此属性可用于重叠元素而无需绝对定位。 Example: 例 !DOCTYPE html head style .over { margin-left: -20px; background-color: #f40; color: #fff; } /style /head html body div classover Some content /div /body /html Output 输出量 保证金属性简化 (Margin property simplification) Here the shorthand is used to specify margin in every direction without writing for every direction. 在这里速记用于指定每个方向上的边距而无需为每个方向编写。 Example: 例 !DOCTYPE html head style p { margin: 1px; /* 1px margin in all directions */ background-color: #f40; color: #fff; } /style /head html body p Some content /p /body /html Output 输出量 边距CSSlength | auto | initial | inherit (CSS for margin: length|auto|initial|inherit) margin: 1px; margin: 1px 1px; margin: 1px 1px 1px; margin: 1px 1px 1px 1px; 左右上和下边距 (Left, Right, Top and Bottom Margins) To provide margins for left, right, top and bottom to an object, we can use margin-left, margin-right, margin-top and margin-bottom properties respectively. 要为对象的左侧右侧顶部和底部提供边距我们可以分别使用margin-left margin-right margin-top和margin-bottom属性。 Example: 例 !DOCTYPE html head style p { margin-left: 10px; margin-right: 10px; margin-top: 20px; margin-bottom: 30px; /* 1px margin in all directions */ background-color: #f40; color: #fff; } /style /head html body pThis is line One./p pThis is line Two./p pThis is line Three./p pThis is line Four./p /body /html Output 输出量 翻译自: https://www.includehelp.com/code-snippets/margins-in-css.aspxcss中图片左右边距
http://www.pierceye.com/news/629765/

相关文章:

  • 网站调用字体在阿里云备案网站通过
  • 手机网站做落地页石家庄网络营销
  • 如何把网站主关键词做到百度首页网站页面设计优化方案
  • 做门户网站多少钱做视频解析网站播放器和接口
  • 打开一个网站网站被挂马无法访问
  • 大连网站建设公司排名装饰设计公司哪个好
  • 苏州企业建设网站公司400电话网站源码
  • 贵州住房和城乡建设厅官网泰安千橙网站建设优化熊掌号
  • metro网站模板平面设计师网站
  • 怎样通过阿里云建设网站国内免费crm
  • 网站开发都需要学什么iis7网站建设
  • 网站 关键字it网站建设资讯网
  • 白银网站建设公司石家庄建行网站
  • 做网站全部乱码怎么办教学资源网站建设方案
  • 自己做的网站怎么添加文档做淘宝详情的网站
  • 安全认证的机票网站成就怎么做山东省住房和城乡建设厅政务服务
  • 海口网站建设方案咨询信息流优化师面试常见问题
  • 网上课程网站wordpress自定义页面分页
  • 自建站成本深圳网站建设营销服务平台
  • 模仿网站怎么做网站编辑建设
  • 湖南做网站 磐石网络引领免费网上开店
  • wordpress内容做成目录seo排名分析
  • 大型网站 网站建设做网站赔了8万
  • python官方网站建设网站要什么
  • 青海 网站开发 图灵如何创建自己的网页
  • 建设银行网站怎么登陆不做网站首页的尺寸
  • 谁能给我一个网站谢谢dedecms收费怎么办
  • dede 网站地图 模块青岛做网站服务商
  • 征信网站开发扬州市建设局网站
  • 教育网站建设 飞沐软件定制公司值得去吗