Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery ui 标签的字体看起来有点太大了_Jquery Ui - Fatal编程技术网

Jquery ui 标签的字体看起来有点太大了

Jquery ui 标签的字体看起来有点太大了,jquery-ui,Jquery Ui,我使用的是jQueryUI的默认字体,但看起来字体有点大。 我知道一个解决方案是“好吧!把它弄小一点!”,但我只是想知道,在我开始充电并开始改变之前,我是否把事情搞砸了,或者没有正确设置值 <!DOCTYPE HTML> <html> <head> <script src="http://www.google.com/jsapi"></script> <script type="text/javascript"> googl

我使用的是jQueryUI的默认字体,但看起来字体有点大。 我知道一个解决方案是“好吧!把它弄小一点!”,但我只是想知道,在我开始充电并开始改变之前,我是否把事情搞砸了,或者没有正确设置值

<!DOCTYPE HTML>
<html>
<head>
<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1");
</script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.css" type="text/css" media="all" />
<script type="text/javascript">
google.load("jqueryui", "1");
function OnLoadCallbackUI(){
    $('#tabs').tabs();
}
google.setOnLoadCallback(OnLoadCallbackUI);
</script>
</head>
<body>

<div id="tabs">
    <ul>
        <li><a href="#tabs-1">tab1</a></li>
        <li><a href="#tabs-2">tab2</a></li>
    </ul>
    <div id="tabs-1">
        tabs-1
    </div>
    <div id="tabs-2">
        tabs-2
    </div>
</div>
</body>
</html>

load(“jquery”,“1”);
加载(“jqueryui”,“1”);
函数OnLoadCallbackUI(){
$(“#tabs”).tabs();
}
setOnLoadCallback(OnLoadCallbackUI);
表1-1 表2-2
不要修改jQuery CSS文件。相反,根据需要使用您自己的CSS覆盖它。

演示页面包括:

        body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 50px;}
        .demoHeaders { margin-top: 2em; }
        #dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
        #dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
        ul#icons {margin: 0; padding: 0;}
        ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left;  list-style: none;}
        ul#icons span.ui-icon {float: left; margin: 0 4px;}

我想我的问题是:为什么默认情况下它会这么大?我的意思是:没有人用那种尺寸,是吗?也许我应该从别人那里下载一个模板。