Styling the jQueryUI DatePicker

前端 未结 8 687
终归单人心
终归单人心 2020-12-29 21:54

I am using the jquery datepicker (http://jqueryui.com/demos/datepicker/).

The datepicker on the demo page is small and compact. However, when I use the datepicker on

8条回答
  •  失恋的感觉
    2020-12-29 22:47

    The demo pages have quite a bit of extra CSS to 'fix' what comes in the packaged CSS that they don't mention anywhere. In my opinion, they do a poor job explaining this, especially with how many time the standard css uses !important.

    Also, the ThemeRoller uses em as the default, which is % of a font set elsewhere.

    Anyway, the dates are links, so to make them smaller, set a size for a around 9px.

    Here's what I do before I use any jquery:

    h1 {font-size:10px;}
    h2 {font-size:11px;}
    h3 {font-size:11px;}
    p {font-size:11px;}
    a {font-size:11px;}
    

提交回复
热议问题