Webサイト(テーマブラウザ)でjQueryUIサンプルを使用すると、見栄えがします。しかし、コードとテーマをアプリケーションに入れると、サイジングは大したことではありません(私はレドモンドのテーマを利用しようとしています)。
これらのサンプルがなぜそれほど異なって見えるのかについてのアイデアはありますか?私が作成したアプリケーションでは、レドモンドテーマ用のCSSリファレンスは1つだけです...以下のこれらの画像は、ブラウザにレンダリングされた方法とまったく同じです。
私のアプリケーション:
代替テキストhttp://www.imageunload.com/public/14462/jQueryUI.png
jQuery UIサンプル:
代替テキストhttp://www.imageunload.com/public/14463/jQueryUI-Sample.png
私のアプリケーションコード:
<div>
<asp:TextBox ID="txtDateSample" runat="server"></asp:TextBox>
</div>
</form>
<script type="text/javascript" language="javascript">
$(function() {
$('#<%= txtDateSample.ClientID %>').datepicker({
showButtonPanel: true,
showOn: 'button',
buttonImage: '../Graphics/Icons/calendar.png',
buttonImageOnly: true
});
});
</script>
DivのFirebugビュー:
<div id="ui-datepicker-div" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"/>