当前位置: 首页 > 后端技术 > Python

CSSStyleChanges—Lists,Tables,andOutlines

时间:2023-03-26 12:10:26 Python

上一篇文章主要介绍了CSSStyleChanges,Font&BorderSettings中的字体设置。本文分享列表、表格和大纲。让我们来看看。1.列表List1).列表类型

  • noneunmarkeddiscsolidcirclecirclehollowcirclesquaresolidsquaredecimalnumbernonenone2).列表的图像
    3)。列表的位置
    insidethelistitemmarkisplacedinsidethetextoutsidelistitemmarkisplacedoutsidethetext这三个属性可以用列表方式统一设置。2.表表1)。Collapsetablebordertable{border-collapse:collapse}separateborder将被分开并合并成一个单一的边框。2).表格文本对齐设置水平对齐方式,如左对齐、右对齐或居中{text-align:right}设置垂直对齐方式,如顶对齐、底对齐或居中对齐td{vertical-align:bottom}3)。单元格边框间距表格{border-spacing:10px50px}可以使用像素,不允许负值。如果定义长度参数,则定义水平和垂直间距。如果定义两个长度参数,第一个设置水平间距,第二个设置垂直间距4)。表格标题标题的位置{caption-side:bottom}toptabletitleispositionedabovethetablebottomtabletitleispositionedbelowthetable5).showemptycellsinthetabletable{empty-cells:hide}hidedonot在空单元格周围绘制边框显示在空单元格周围绘制边框6)。设置表格布局算法表{table-layout:fixed;}automatic列宽由单元格内容设置fixed列宽由表格宽度和列宽设置3.OutlineOutline1).设置轮廓颜色div{outline-color:red}2).设置轮廓样式div{outline-style:dotted}与边框样式相同3).设置轮廓宽度div{outline-width:1px}总结本文主要介绍了CSS样式变化中的Lists、tables和outlines,希望能让大家对CSS选择器有一个简单的了解和了解。看完这篇文章你有收获吗?请转发并分享给更多的人。想了解更多,请到Python爬虫和数据挖掘的专门网站:http://pdcfighting.com/了解更多Python网络爬虫和数据挖掘,请到专业网站:http://pdcfighting。com/