Element-Plus: el-divider attribute color dotted line problem

I also forgot the question of which day, about the setting of the el-devider style in Ele.me plus.

The divider was used at the beginning, but because at some point (I can’t remember clearly), when adjusting the style, after adding margin-top/bottom to the divider, the divider will become thicker, and it took a long time to change it. I used penetration It’s useless, so I gave up temporarily and switched to the original <hr />, until later a scene needs to use the dashed (dotted line) effect, I’m too lazy to change hr, and I remembered the divider, so I studied its color and dashed line carefully Attributes, not much to say, directly to the results (there is nothing to say here...)

<el-divider border-color="#dcdcdc" border-style="dashed" />

The color of the line is the border-color attribute, just set it directly on the label

Line style (solid (default solid line) or dashed (dotted line)) set the border-style property

Finally, the attributes of the document are attached. I just accidentally discovered that the border-style has other available attributes. It should be the attributes of the border. If you are interested, you can try it

 

Guess you like

Origin blog.csdn.net/weixin_44016350/article/details/128292101