\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[help lines] grid (4,3);
\coordinate (X) at (3,3);
\draw[red ,thick,xshift=-10] (1,1 -| X) -- (2,2 -| X);
\draw[blue,thick,xshift=-10] (1,1 -| 3,3) -- (2,2 -| 3,3);
\end{tikzpicture}
\end{document}
当名称指定坐标时,xshift=-10
似乎没有任何效果。那是为什么?