html dom style border-style属性
html dom style border-style属性是html中用于设置元素边框样式的属性,它可以接受以下几种值:
- none:表示没有边框;
- hidden:表示隐藏边框;
- dotted:表示虚线边框;
- dashed:表示虚线边框;
- solid:表示实线边框;
- double:表示双线边框;
- groove:表示凹槽边框;
- ridge:表示凸槽边框;
- inset:表示内凹边框;
- outset:表示外凸边框。
使用方法:
element.style.borderStyle="dotted";
上面的代码表示将元素element的边框样式设置为虚线。