Re: [pgsql-www] Example indenting

Поиск
Список
Период
Сортировка
От Thom Brown
Тема Re: [pgsql-www] Example indenting
Дата
Msg-id AANLkTikGz9D3e5XeXu--t9b1rTVan4rUwb056Zr47_F=@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [pgsql-www] Example indenting  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: [pgsql-www] Example indenting  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-docs
On 31 August 2010 18:45, Bruce Momjian <bruce@momjian.us> wrote:
> Thom Brown wrote:
>> >> But the benefit of the javascript hack was that we weren't setting a
>> >> base font size for everything, we just bump up the relative font size
>> >> for elements which are monospaced by default.
>> >>
>> >> There's pros and cons to both approaches. ?I'm not sure which one you
>> >> guys prefer.
>> >
>> > If we are using Javascript, why can't we probe the font size and do
>> > something reasonable, e.g. make monospace larger only if it smaller than
>> > proportional?
>>
>> Hmm.. I don't know if the rendered font size is exposed to the DOM.
>
> I quick search shows it as document.body.style.fontSize:
>
>        http://www.ehow.com/how_5924039_change-font-size-javascript.html
>
> I believe you can query a fixed-width attribute to find its font size.
> Would you like me to write some Javascript that illustrates that?

The code on that page shows that the value can be blank, suggesting it
only picks up applied CSS styles, not font sizes which are a result of
falling back on the defaults.

--
Thom Brown
Twitter: @darkixion
IRC (freenode): dark_ixion
Registered Linux user: #516935

В списке pgsql-docs по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [pgsql-www] Example indenting
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [pgsql-www] Example indenting