EasyUI Forum
April 18, 2024, 01:28:51 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to change Font in MESSAGER and the Box Size ?  (Read 11153 times)
Jonny
Newbie
*
Posts: 38


View Profile Email
« on: September 03, 2015, 08:37:30 PM »

Hello Sir/Madam,

Is there any possibility to change font style in messager because the default font is so small / tiny

I tried editing the class:
<style>
.messager-question-text{ font-size: 11pt; font-family: 'Verdana', cursive; }
.messager-text{ font-size: 11pt; font-family: 'Verdana', cursive; }
</style>
But nothing change..

And how to change messager's box size ?

$.messager.alert({
   title: 'I am learning messager !!',
   msg: '<div style="height:100px">This messagebox is in 740px width mode</div>',
   icon: 'info',
   width: 740,
   heigth: 160,
   top:40
   });   


Please help me correct the parameter above .
Thanks in advanced.

Regards,
JONNY
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: September 04, 2015, 01:39:06 AM »

Please try this code instead to change the default font size.
Code:
<style type="text/css">
.messager-body{
font-size: 14px;
}
</style>
Logged
Jonny
Newbie
*
Posts: 38


View Profile Email
« Reply #2 on: September 04, 2015, 02:14:26 AM »

Hello Jarry,

Thank's for your help... it is working

Could you teach me how to set height to messager' Box ?
Because it is related to font size, i want it looks proportional with the font...

$.messager.alert({
   title: 'I am learning messager !!',
   msg: '<div style="height:100px">This messagebox is in 740px width mode</div>',
   icon: 'info',
   width: 740,
   heigth: 160,
   top:40
   }); 

Is messager's Box sizable using <style>  ?
Please help me correct the parameter...
Thank you.

Regards,
JONNY

Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #3 on: September 04, 2015, 02:26:45 AM »

The code below displays the alert message window with special height and font size.
Code:
$.messager.alert({
   title: 'I am learning messager !!',
   msg: '<div style="height:160px;font-size:14px">This messagebox is in 740px width mode</div>',
   icon: 'info',
   width: 740,
   height: 'auto',
   top:40
});   
Logged
Jonny
Newbie
*
Posts: 38


View Profile Email
« Reply #4 on: September 04, 2015, 03:50:14 AM »

Hello Jarry,

Is the messager's box height only can be set to 'auto'

I tried so many times...
$.messager did not accept any value.. ( seems like auto heigth )


Regards,
JONNY
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #5 on: September 04, 2015, 07:17:05 AM »

You can set any height for the alert message window. Please download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.3-patch.zip.
Code:
$.messager.alert({
   title: 'I am learning messager !!',
   msg: 'This messagebox is in 740px width mode',
   icon: 'info',
   width: 740,
   height: 160,
   top:40
});
Logged
Jonny
Newbie
*
Posts: 38


View Profile Email
« Reply #6 on: September 04, 2015, 08:45:52 AM »

Hello Jarry,

Thank you very much for making the patch...
After download and add the patch, my problems solved..

All well done now.



Regards,
Jonny
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!