问题标签 [dotted-line]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
4 回答
5945 浏览

android - android,如何在edittext中绘制虚线

我参考了这个链接:How do I make a dotted/dashed line in Android? , 并使用DashPathEffect. 但这对我不起作用?为什么?我的代码:

0 投票
1 回答
1382 浏览

android - android EditText中的虚线

我需要在我的编辑文本字段中有虚线。这是我到目前为止所尝试的。但是没有达到我的目的。它什么也不显示。为什么虚线不见了?我哪里错了?

在 main.xml 中归档的 EditText

在 MainActivity..

0 投票
3 回答
7546 浏览

java - Java 向 JPanel 添加虚线或虚线边框

我在这件事上遇到了问题:我可以以某种方式向 JPanel 添加虚线(或虚线,无论如何)边框吗?

我搜索了一些问题,但似乎以前没有人问过这个问题。

我想知道是否有任何课程可以使用。实际上我正在使用:

显然这是一个标准类,只给出很少的标准边框,对我没有用处。

0 投票
2 回答
706 浏览

javascript - jqPlot from line to dotted

I have a graph where I show projections for several statistics. The statistics up to this year are certain, but from 2012 and beyond, they are just a projection, and therefore not certain. I want to have a line when the statistics are certain, and become dotted when the projection starts.

Is this possible? Or do I have to create a new line that is dotted and starts after this year?

0 投票
1 回答
1597 浏览

matlab - Matlab - 将虚线更改为实线

我如何在情节中改变我的虚线???我知道它是这样完成的,plot(x, y, '-')但即使我把它放在那里,我也会得到虚线

0 投票
3 回答
1066 浏览

iphone - CGContextRestoreGState 好像没有恢复之前的状态

因此,我需要沿轴绘制一系列虚线。在drawRect方法中我调用另一个方法来绘制轴。在那个方法中我保存GState绘制轴然后保存gstate在适当的时候再次绘制虚线,然后描边路径恢复gstate在轴上添加一些东西填充路径..事情现在是整个事情都是虚线......当我恢复gstate时,代码似乎没有丢弃虚线模式......

我怎么能痛到只有我需要的线被宠坏了???

0 投票
2 回答
191 浏览

html - 在四舍五入的值上最后的边界点合并

我正在一个网站上工作,并点击了下面的代码

我需要一个200px宽度的虚线边框,但它会产生一个合并的结尾。请看这里的jsfiddle 。如果我放199 像素,它看起来很好。我的问题是有什么方法可以让它在200px宽度下看起来不错(不合并结尾)?

谢谢你。

0 投票
1 回答
994 浏览

firefox - Dotted outline around div element in table

I have a table element, containting a custom usercontrol (contained in a "td" tag), that is a RadGrid from telerik. When i click anywhere in the div/cell zone (not a link, not an image, but inside a cell of the grid, anything that has not a a:link) and there is a dotted line around the border of that div/cell.

I succeeded of removing the equivalent "orange" line that Chrome produce in that case with css style

In IE, i don't have the dotted line, but i still gotta remove that line in Firefox. I tried css style:

or

but no result so far. Any idea?

DottedOutlineImage

0 投票
1 回答
1209 浏览

android - 垂直 ListView (Android) 中的虚线分隔线

我已经浏览了所有虚线分隔线主题,但不知何故我的问题仍然存在:

我有一个垂直的线性布局,并希望在线性布局中的每个项目之间显示虚线分隔线。我使用以下形状,但仍然得到一条直线。

0 投票
0 回答
238 浏览

ios - iOS 中 PDF 渲染的虚线

我不知道如何在 pdf 上渲染虚线。

据我了解,此代码应生成一条虚线,其中包含 0 个单位的绘制(点),后跟 8 个单位的未绘制线。它不是。它产生以下内容:

一个点后跟 8 个空白单位,然后是一个点,然后是 1 个空白单位,然后是一个点,然后是 8 个空白单位……等等。我会发布图片,但我没有足够的代表点。

我究竟做错了什么?