English 中文(简体)
如何避免在 j格里的主角出现大眼的方言?
原标题:How to avoid big looking dialog title in jquery ui?

我正在使用j Query UI 1.8,并有以下法典:

var newDiv = $(document.createElement( div )); 
$(newDiv).html( hello there );
$(newDiv).attr( title , Dialog Title );
$(newDiv).css( font-size , 62.5% );
$(newDiv).dialog();

由于某种原因,标题看上去确实是大的,见http://jsfiddle.net/foreyez/WwVgn/“rel=“noretinger”>,例如,该标题是jsFiddle。

如果有任何办法使这一研究更加像。 Query demo?

最佳回答

2. 您可使用这一条规则来适用较小的体积:

.ui-dialog{font-size: 62.5%;}
问题回答
.ui-dialog-title {
    font-size:14px !important;
}

rel=“nofollow> http://jsfiddle.net/WwVgn/6/。

它对j Query UI网站的好评是,它们正在使用CSS风格表来打字标语。 如果您认为是来源的话,请看......

<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>

我用这一风格表格更新了您的JSFiddle:。 http://jsfiddle.net/WwVgn/5/

不管怎样,如果你想创造自己的风格,就向领导。 Query UImesroller website, 你可以方便地定制,然后出口风格表,供采购处使用。

我认为,你只是用一个具有大方言词的不同主题。 http://jqueryui.com/themeroller/rel=“nofollow”http://jqueryui.com/themeroller/

Just add this bit of css:

.ui-dialog-titlebar {
    font-size: 80%;
}




相关问题
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.

热门标签