HTML DOM中的Style columnRuleWidth属性用于定义或确定列之间的规则宽度。

用法:

它返回columnRuleWidth属性。object.style.columnRuleWidth

它用于设置columnRuleWidth属性。object.style.columnRuleWidth = "medium|thin|thick|length|

initial|inherit"

属性值:

thin:它用于在列之间设置精简规则。

medium:它用于在列之间创建中等宽度的规则。这是默认宽度。

thick:它在列之间创建一个粗细宽度规则。

length:用于按长度设置宽度。它不取负值。

initial:它用于将columnRuleWidth属性设置为其默认值。

inherit:此属性是从其父级继承的。

返回值:它返回一个表示元素的column-rule-width属性的字符串。

范例1:本示例描述了length属性值。

HTML | DOM Style columnRuleWidth Property

#GFG {

/* For old Chrome and Safari browsers */

-webkit-column-count:4;

-webkit-column-rule:1px green solid;

/* For Firefox browser */

-moz-column-count:4;

-moz-column-rule:1px green solid;

-webkit-column-count:4;

-webkit-column-rule:1px green solid;

text-align:justify;

}

Prepare for the Recruitment drive of product

based companies like Microsoft, Amazon, Adobe

etc with a free online placement preparation

course. The course focuses on various MCQ's

& Coding question likely to be asked in the

interviews & make your upcoming placement

season efficient and successful.

Click on the button to change the

column-rule width

Click Here!

function myGeeks() {

document.getElementById("GFG").style.columnRuleWidth

= "10px";

}

输出:

之前单击按钮:

单击按钮后:

范例2:本示例描述中等属性值。

HTML | DOM Style columnRuleWidth Property

#GFG {

/* For old Chrome and Safari browsers */

-webkit-column-count:4;

-webkit-column-rule:1px green solid;

/* For Firefox browser */

-moz-column-count:4;

-moz-column-rule:1px green solid;

-webkit-column-count:4;

-webkit-column-rule:1px green solid;

text-align:justify;

}

Prepare for the Recruitment drive of product

based companies like Microsoft, Amazon, Adobe

etc with a free online placement preparation

course. The course focuses on various MCQ's

& Coding question likely to be asked in the

interviews & make your upcoming placement

season efficient and successful.

Click on the button to change the

column-rule width

Click Here!

function myGeeks() {

document.getElementById("GFG").style.columnRuleWidth

= "medium";

}

输出:

之前单击按钮:

单击按钮后:

支持的浏览器:下面列出了DOM Style columnRuleStyle属性支持的浏览器:

谷歌浏览器

Firefox使用MozColumnRuleWidth

IE浏览器

Opera

苹果Safari

HTML用于定义宽度的是,HTML Style columnRuleWidth用法及代码示例相关推荐

  1. html 代码 border,HTML Style border用法及代码示例

    DOM样式的border属性用于设置或返回元素边框的样式.我们可以为各个侧面(顶部,右侧,底部,左侧)设置不同的边框样式. border-style属性的每一侧都可以采用多个值. 用法: 它用于返回S ...

  2. html高度style,HTML Style minHeight用法及代码示例

    HTML DOM中的minHeight属性用于设置或返回元素的最小高度.此属性仅影响block-level元素,绝对或固定位置元素. 用法: 它返回minHeight属性.object.style.m ...

  3. html body background color,HTML Style backgroundColor用法及代码示例

    HTML DOM中的backgroundColor属性用于设置或返回元素的背景色. 用法: object.style.backgroundColor 它返回元素的背景色. object.style.b ...

  4. html 去除max-height,HTML Style maxHeight用法及代码示例

    maxHeight属性设置/返回元素的最大高度. maxHeight属性仅影响block-level元素,绝对或固定位置元素. 用法: 它用于设置maxHeight属性: object.style.m ...

  5. html word-break,HTML Style wordBreak用法及代码示例

    DOM样式wordBreak属性用于设置或返回word-break属性. word-break属性用于指定在行尾到达单词时如何中断单词.文本中的换行符可以出现在特定的wordBreak属性中. 用法: ...

  6. html代码style图片width,HTML Style columnWidth用法及代码示例

    DOM中的columnWidth属性用于指定列的宽度. 用法: 返回columnWidth属性: object.style.columnWidth 设置columnWidth属性: object.st ...

  7. 【Groovy】map 集合 ( map 集合定义 | 通过 getClass 函数获取 map 集合的类型 | 代码示例 )

    文章目录 一.map 集合定义 二.获取 map 集合类型 三.代码示例 一.map 集合定义 声明键值对 , 其中 键 Key 可以 不使用引号 , 可以 使用单引号 '' , 也可以 使用双引号 ...

  8. C++/C++11中用于定义类型别名的两种方法:typedef和using

    类型别名(type alias)是一个名字,它是某种类型的同义词.使用类型别名有很多好处,它让复杂的类型名字变得简单明了.易于理解和使用,还有助于程序员清楚地知道使用该类型的真实目的.在C++中,任何 ...

  9. java中可用于定义成员常量_13秋北航《Java语言与面向对象程序设计》在线作业三辅导 …...

    需要答案的请联系:qq或者微信 514169068 一. 惟一选项(共 15 道试题,共 60 分.)V 1.设有定义 float x=3.5f, y=4.6f, z=5.7f:则以下的表白式中,值为 ...

最新文章

  1. hdu-Find the nondecreasing subsequences(树状数组)
  2. 常量、变量、数据类型
  3. 关于定义视频播放器的界面的相关的类transPortcontroll等
  4. 【T_SQL】 基础 事务
  5. 四 Apache Axis2 部署 WebService
  6. 在5个数中找最大的数,并把他放入MAX单元
  7. 这篇带你熟悉 SpringBoot+RabbitMQ 方式收发消息
  8. 设计模式学习笔记(十八:模板方法模式)
  9. click() bind() live() delegate()区别 1
  10. PaddleSeg用于人像分割
  11. Proe调入ansys中单位的协调
  12. Excel表Ctrl+v和Ctrl shift+v有什么区别_朴素的办公神器——excel
  13. dmp(数据管理平台)是什么?
  14. 052试题 97 - SQL*Loader Direct Path and Conventional Path
  15. 政府大数据平台标准规范-数据接入
  16. 关于a21A11+a22A12+a23A13=0的证明
  17. imx6ull移植openwrt
  18. Linux下安装佳能网络打印机cacon imageclass4010
  19. 为什么劝你不要学车?
  20. Cisco GETVPN

热门文章

  1. 博图组态显示未分配的设备_S71200CPU做IO共享设备的配置方法【图文】
  2. 计算机一级基础知识理论,计算机一级考试理论试题 第6部分 信息与计算机基础知识...
  3. OpenShift Security (5) - 评估部署中的风险
  4. OpenShift 4 之 GitOps(6)用ArgoCD部署MongoDB主从集群
  5. 使用TensorFlow.js的AI聊天机器人六:生成莎士比亚独白
  6. 将MongoDB.NET驱动程序与.NET Core WebAPI一起使用
  7. 通过程序包管理器控制台解决版本错误(CS1705)
  8. 计算机工作应用工作简历,计算机应用专业工作简历范文
  9. respond java 使用_java – 使用android问题的HttpResponse:执行总...
  10. .net vue漂亮登录界面_6个宝藏级Vue管理后台框架 必须收藏