FreeOZ论坛

标题: firefox显示虚拟线 [打印本页]

作者: DDD888    时间: 13-5-2015 11:45
标题: firefox显示虚拟线
有没有办法让firefox显示虚拟线,我想看下两个label是否处于同一水平线?

谢谢
作者: 周星星1832    时间: 13-5-2015 11:53
即使有plugin 也没法凭肉眼判断阿
作者: mason00    时间: 13-5-2015 12:02
developer tools里面有标尺吧,可以显示网格似乎。F12
作者: DDD888    时间: 13-5-2015 13:18
mason00 发表于 13-5-2015 11:02
developer tools里面有标尺吧,可以显示网格似乎。F12

Thanks

The location is Web developer Line guides
Miscellanceous\Display Line guides
作者: DDD888    时间: 13-5-2015 13:19
周星星1832 发表于 13-5-2015 10:53
即使有plugin 也没法凭肉眼判断阿

大约就可以啦
作者: 周星星1832    时间: 13-5-2015 13:24
DDD888 发表于 13-5-2015 12:19
大约就可以啦

大约不要标尺也可以
作者: DDD888    时间: 14-5-2015 09:33
周星星1832 发表于 13-5-2015 10:53
即使有plugin 也没法凭肉眼判断阿

问一下,有没有不靠肉眼判断的方法吗?
作者: 周星星1832    时间: 14-5-2015 09:34
DDD888 发表于 14-5-2015 08:33
问一下,有没有不靠肉眼判断的方法吗?

当然了。。。
好的layout 和css阿。。。。。。。

作者: DDD888    时间: 14-5-2015 10:00
周星星1832 发表于 14-5-2015 08:34
当然了。。。
好的layout 和css阿。。。。。。。

但问题是firefox firebug中没有显示control 的绝对位置
作者: 周星星1832    时间: 14-5-2015 10:02
DDD888 发表于 14-5-2015 09:00
但问题是firefox firebug中没有显示control 的绝对位置

決定位置的是layout和css。。
如果不水平。。你不是还得检查css吗
你怀疑了。。说明不水平。。。。。
检查你的css。。
作者: DDD888    时间: 14-5-2015 10:06
本帖最后由 DDD888 于 14-5-2015 09:08 编辑
周星星1832 发表于 14-5-2015 09:02
決定位置的是layout和css。。
如果不水平。。你不是还得检查css吗
你怀疑了。。说明不水平。。。。。


css的top一般都是相对位置啦

在html datatable里如果位于不同列,在一个列里有两行a, b,在另一个列里只有一行c,如果想让b和c显示在同一高度,css如何做啊?a,b并不是都是label, a是label, b是button, c 是label

没设定a,b的css,只设定了c的css

例如下面所演示的

--------------
a    |
b    | c
--------------
作者: 周星星1832    时间: 14-5-2015 10:11
DDD888 发表于 14-5-2015 09:06
css的top一般都是相对位置啦

在html datatable里如果位于不同列,在一个列里有两行a, b,在另一个列 ...

give me your html code
作者: 周星星1832    时间: 14-5-2015 10:15
DDD888 发表于 14-5-2015 09:06
css的top一般都是相对位置啦

在html datatable里如果位于不同列,在一个列里有两行a, b,在另一个列 ...



just give a b c a parent div and also set a empty div above c。。。。。。。。。。。。
作者: DDD888    时间: 14-5-2015 10:27
周星星1832 发表于 14-5-2015 09:15
just give a b c a parent div and also set a empty div above c。。。。。。。。。。。。

There is no need to put an empty div above c. I set c as a div with a class name d and I set css d with top value. But I am not sure if c is the same height as b. There is no global top for control c, only relative value.

That is the reason I ask for a ruler to measure two controls to see if they are aligned.
作者: 周星星1832    时间: 14-5-2015 10:30
DDD888 发表于 14-5-2015 09:27
There is no need to put an empty div above c. I set c as a div with a class name d and I set css d ...

then get a ruler。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
and measure it in different browsers and devices




欢迎光临 FreeOZ论坛 (https://www.freeoz.org/ibbs/) Powered by Discuz! X3.2