English 中文(简体)
当我们在格里有多个班级时,如何阅读要素
原标题:how to read element when we have multiple class in jquery
  • 时间:2010-03-18 18:19:09
  •  标签:
  • jquery
  • css

我有近50多件小事,有一部分是“一天”的。

例:

<div class="fc-event fc-event-vert fc-corner-top fc-corner-bottom **holiday**" style="position: absolute; z-index: 8; top: 0px; left: 61px; width: 71px; height: 40px;">content</div>

I am trying to identify this div in jquery and modify the width from 71 to 80 px ..

i 审判

(iv.holiday ) 它退回物体,但在一度尝试(iv.holiday ).attr(width )时,它不明确地返回......

能够帮助我如何解决这一问题。

Regards Priti

问题回答

<.div. width=“50px”>

您需要使用<代码>(div.holiday )cs(width ),该代码将返回<>71px。

否则,将采用<代码>的宽度方法。

改变你可以再次使用两种方式的价值

$ (div.holiday ).css ( width , 80px );

<代码>(div.holiday )。

www.un.org/Depts/DGACM/index_spanish.htm 这不是有效的类别名称,它只需要holiday,然后由您制定。

之后,你可以做这样的工作:

$( div.holiday ).width(80);

It may be that there is an error in the HTML. Edit the css to see if the DIV is correctly defined





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签