English 中文(简体)
斜线和高温
原标题:Incorrect button width and height

rel=“nofollow”> 参看。 I m通过使用jquery 方法,通过.cs (“hels”),进入荷兰的高度和宽度,我得到两个错误的答复。

页: 1 这里的情况如何?

Inner Height: 46, Inner Width: 196
Height: 46, Width: 196
CSS Height:44px, CSS Width: 184px
(The actual button dimensions are 200 X 50)
最佳回答

你们忽视了这样一个事实,即国家安全局的箱子政策使得边界无法进入码头。 你有边界线=1,边界底线=3,边界右线=边界线——7,是失踪人员。

获取某一元素的宽度/公顷的计算量,包括该元素的边境加胎,可使用<代码>outerWidth(/outerHala(<>>>>/code>。

此外,在我看来,我也正确对待所有价值观:

Inner Height: 46, Inner Width: 186

Height: 46, Width: 186

CSS Height:46px, CSS Width: 186px

(实际纽芬兰语为200 X 50)

问题回答

在 Chrome中,我也看到:

border: 2px outset buttonface;

因此,为每一方增加2px,或为总尺寸增加4px,因此计算纽扣本身的规模是正确的。

甲壳体的海拔为184×44,有1×6胎和2px边界。 总数为200×50:

“button

它看上去的是你规定的宽度,即婚礼。 因此,在 j中,你需要获得边界,并穿透边界。

而且,你带上 j子的内ner是 but子和dding子的 w,而不是边界。 因此,184×44+6×1为196×46

所有回答者在技术上都是正确的,但是他们离开了这一部分:jquery s outerHala(>)考虑到所有这些因素(我不知道这些功能)。

rel=“nofollow”>Demo。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.