7

YIIフレームワークを介してjquerydatepickerを使用し、画像を使用しています。この画像は持っていtitlealt、私はそれらを削除できませんでした

これがYIIの画像を表示するための私のコードです

$this->widget('zii.widgets.jui.CJuiDatePicker', array(
'name' => 'sso_register[dob]',
//'model' => $model,
'attribute' => 'dob',
'value' => $dbText,
'options' => array(
'changeMonth' => true,
'changeYear' => true,
'dateFormat' => 'dd/mm/yy',
'yearRange' => "-100:+0",
'maxDate' => '31/12/2007', //day can choose >= tomorrow
'buttonImage' => Yii::app()->baseUrl . '/images/date_picker.png',
'buttonImageOnly' => true,
'showButtonPanel' => false,
'showOn' => 'button',
'altField' => '',
),
'htmlOptions' => array(
'class' => 'inputfield-middleside-date',
'readonly' => 'true',
'style' => 'position: relative; z-index: 100;',
'tabindex' => '7',
'alt'=>'',
'title'=>'',
)
));

すべてのブラウザで画像のalt属性にあるこれらの3つのドットを削除する方法はありますか?ありがとうございました

4

2 に答える 2

12

追加'buttonText'=>'',すると問題が解決します

http://api.jqueryui.com/datepicker/#option-buttonText

于 2012-10-16T08:54:29.640 に答える
0

従来の機能を使用する場合、

あなたが使用することができます

buttonText : '',

カーソルポインタを使用した完全な例、日、月、年を使用したリダイレクト:

<script> 
    $("#calendario").datepicker({
        buttonImage: '/images/calendario2.png',
        buttonImageOnly: true,
        changeMonth: true,
        changeYear: true,
        showOn: 'both',         
        buttonText : '',        
        onSelect: function(date, instance) {            
            var date = $(this).datepicker('getDate'),
            dia  = date.getDate(),  
            mes = date.getMonth() + 1,              
            agno =  date.getFullYear();
            window.location = "caja.php?dia="+dia + '&mes=' + mes + '&agno=' + agno;        }
     });        
     $( ".ui-datepicker-trigger" ).css('cursor','pointer');    
</script>
于 2014-07-21T21:28:23.693 に答える