在css中,“marker-offset”css属性用于指定标记框和主框最近的边框边缘之间的距离。在 css 中,标记是一个伪元素,它引用列表的项目符号点。
在这里,我们将学习设置标记框和主框最近的边框边缘之间的距离。
语法用户可以按照下面的语法设置标记框与主框最近的边框边缘之间的距离。
marker-offset: value;
示例在下面的示例中,我们创建了不同编程语言的无序列表。此外,我们还使用“marker-offset”css 属性来设置标记框与主框最近边缘之间的距离。
<html><head> <style> .list { marker-offset: 2em; } </style></head><body> <h3> using the <i> marker-offset css property </i> to specifies the distance between nearest border edges of marker box and principal box in css </h3> <ul class = list> <li> javascript </li> <li> html </li> <li> css </li> <li> c </li> <li> cpp </li> </ul></body></html>
示例在此示例中,我们将“marker-offset”css 属性与有序列表一起使用。我们应用了“2cm”的偏移量,代表 2 厘米。
<html><head> <style> .list { marker-offset: 2cm; } </style></head><body> <h3> using the <i> marker-offset css property </i> to specifies the distance between nearest border edges of marker box and principal box in css </h3> <ol class = list> <li> english </li> <li> hindi </li> <li> gujarati </li> <li> marathi </li> <li> urdu </li> </ol></body></html>
用户学会了使用“marker-offset”css 属性设置标记框与主框最近边缘之间的距离。
以上就是哪个属性指定标记框和主框最近边框边缘之间的距离?的详细内容。