質問編集履歴
1
情報の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,41 +1,7 @@
|
|
1
1
|
カレンダーの横に置いてあるファビコンのサイズが巨大になる。
|
2
2
|
|
3
|
-
htmlに
|
4
|
-
|
5
|
-
```ここに言語を入力
|
6
|
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
7
|
-
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
|
8
|
-
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/i18n/jquery.ui.datepicker-ja.min.js"></script>
|
9
|
-
|
10
|
-
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/excite-bike/jquery-ui.css" >
|
11
|
-
|
12
|
-
<script>
|
13
|
-
|
14
|
-
jQuery.noConflict();
|
15
|
-
var $j = jQuery;
|
16
|
-
|
17
|
-
$j(function() {
|
18
|
-
$j("#datepicker").datepicker();
|
19
|
-
$j("#datepicker").datepicker("option", "showOn", 'button');
|
20
|
-
$j("#datepicker").datepicker("option", "buttonImageOnly", true);
|
21
|
-
$j("#datepicker").datepicker("option", "buttonImage", '/static/images/favicon.png');
|
22
|
-
|
23
|
-
});
|
24
|
-
</script>
|
25
|
-
|
26
|
-
|
27
|
-
<h1>カレンダー</h1>
|
28
|
-
<input type="text" id="datepicker">
|
29
|
-
|
30
|
-
```
|
31
|
-
とコードを書いた。
|
32
|
-
Flaskでhtmlはレンダリングしており、favicon.pngはstatic内のimagesフォルダに置いてある。
|
33
|
-
|
34
3
|
favicon.pngの大きさは16px×16px で一般的なfaviconのサイズであると考えている。
|
35
4
|
しかし、htmlを表示すると、
|
36
5
|
ブラウザに表示したhtmlの横幅と同じぐらいfavicon.pngが大きく表示されてしまう。
|
37
6
|
|
38
|
-
なぜ画像より大きく表示されてしまうのか?css側でfaviconの大きさを指定した方がいいのか?
|
7
|
+
なぜ画像より大きく表示されてしまうのか?css側でfaviconの大きさを指定した方がいいのか?
|
39
|
-
|
40
|
-
参考URL:
|
41
|
-
http://www.webdesign-fan.com/jquery-ui-datepicker
|