增加SQL查询框的字体大小 [英] Increase font size of SQL query box

查看:285
本文介绍了增加SQL查询框的字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的phpMyAdmin安装上接受SQL查询的textarea的字体大小太小.我发现一种解决方法是增加Chrome中的最小字体大小,但这却破坏了其他网站的外观.

The font-size of the textarea that accepts SQL queries on my phpMyAdmin installation is too small. One workaround I found is to increase the minimum font size in Chrome, but it's breaking the look of other websites.

如何增加字体大小?

推荐答案

找到您的phpMyAdmin目录.

Find your phpMyAdmin directory.

   cd themes

您可能会看到多个主题,并且想要对正在使用的主题进行更改-phpMyAdmin允许您选择主题.我使用原始主题,所以我在那里进行了更改.

You may see more than one theme, and you want to make changes in the theme you are using -- phpMyAdmin lets you choose your theme. I use the original theme, so I made changes there.

转到主题的css目录

   cd original/css /* or your preferred theme */

使用像nano这样的文本编辑器来修改theme_right.css.php

Use a text editor like nano to modify theme_right.css.php

   nano theme_right.css.php

搜索2个样式定义

   .CodeMirror pre
   .CodeMirror textarea

两者都将显示"font-size:Inherit"或font-size:inherit!important

Both will show "font-size: inherit" or font-size:inherit!important

更改为

    font-size: 16px; /* or whatever you prefer */

保存并重新加载phpMyAdmin 请注意,您可能需要清除浏览器缓存,才能显示这些更改.

Save and reload phpMyAdmin Note that you may need to clear your browser cache for these changes to appear.

这篇关于增加SQL查询框的字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆