I need to draw several **dashed lines of different width in one table**, but I don't know how to make it. 

I know how to draw a single dashed line using package `arydshln`, but how to set the width of these dashed lines?
`\setheight\arrayrulewidth{1pt}` only works for a whole table, not for specific single line.

Here's the code.

```
\documentclass{article}
\usepackage{arydshln}

\begin{document}
% \setheight\arrayrulewidth{1pt} % works for the whole table
\begin{tabular}{cc}
  \hdashline % need set to 0.8pt
  a & b\\
  \hdashline % need set to 0.6pt
\end{tabular}
\end{document}

```

### My solution

I use package `ehhline` and `dashrule` to get what I want.

```
\documentclass{article}
\usepackage{colortbl}
\usepackage{dashrule}
\usepackage{ehhline}
\usepackage{arydshln}
\newcommand\cdl[2]{\leaders\hbox{\textcolor{#1}{\hdashrule{0.4mm}{#2}{0.2mm 0.2mm}}}\hfil}
\newcommand\crs[2]{\leaders\hbox{\textcolor{#1}{\rule{0.1pt}{#2}}}\hfil}

\begin{document}
\begin{tabular}{|c|c|}
\hhline{
  !{\cdl{red}{1pt}}
  !{\crs{red}{1pt}}
}
test some thing & test\\
\hhline{
  !{\cdl{blue}{4pt}}
  !{\crs{blue}{4pt}}
}
  test some thing & test\\
\hhline{
  !{\cdl{blue}{4pt}}
  !{\crs{blue}{4pt}}
}
  test some thing & test\\
\hhline{
  !{\cdl{blue}{4pt}}
  !{\crs{blue}{4pt}}
}
\end{tabular}
\end{document}

```

[![dashed line](https://i.stack.imgur.com/0uiON.jpg)](https://i.stack.imgur.com/0uiON.jpg)

### Remain solved

But there is another problem: how to draw **vertical dashed line** of different color and width