升级easyUI到1.9.4版本
This commit is contained in:
52
erp_web/js/easyui/demo/tooltip/customstyle.html
Normal file
52
erp_web/js/easyui/demo/tooltip/customstyle.html
Normal file
@@ -0,0 +1,52 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Custom Tooltip Style - jQuery EasyUI Demo</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
|
||||
<link rel="stylesheet" type="text/css" href="../demo.css">
|
||||
<script type="text/javascript" src="../../jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Custom Tooltip Style</h2>
|
||||
<p>This sample shows how to change the tooltip style.</p>
|
||||
<div style="margin:s0px 0;"></div>
|
||||
<div style="padding:10px 200px">
|
||||
<div id="pp1" class="easyui-panel" style="width:100px;padding:5px">Hover Me</div>
|
||||
</div>
|
||||
<div style="padding:10px 200px">
|
||||
<div id="pp2" class="easyui-panel" style="width:100px;padding:5px">Hover Me</div>
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
$('#pp1').tooltip({
|
||||
position: 'right',
|
||||
content: '<span style="color:#fff">This is the tooltip message.</span>',
|
||||
onShow: function(){
|
||||
$(this).tooltip('tip').css({
|
||||
backgroundColor: '#666',
|
||||
borderColor: '#666'
|
||||
});
|
||||
}
|
||||
});
|
||||
$('#pp2').tooltip({
|
||||
position: 'bottom',
|
||||
content: '<div style="padding:5px;background:#eee;color:#000">This is the tooltip message.</div>',
|
||||
onShow: function(){
|
||||
$(this).tooltip('tip').css({
|
||||
backgroundColor: '#fff000',
|
||||
borderColor: '#ff0000',
|
||||
boxShadow: '1px 1px 3px #292929'
|
||||
});
|
||||
},
|
||||
onPosition: function(){
|
||||
$(this).tooltip('tip').css('left', $(this).offset().left);
|
||||
$(this).tooltip('arrow').css('left', 20);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user