1.修改由于意见悬浮框引起的界面的padding不正确的问题

2.修改问卷调查左侧会出现滚动条的问题
enterprise
sw 11 years ago
parent e950208e38
commit 2b5928602e

@ -56,18 +56,21 @@
<%= link_to(bid.name, course_for_bid_path(bid), :class => 'bid_path') %> <%= link_to(bid.name, course_for_bid_path(bid), :class => 'bid_path') %>
</span> </span>
</td> </td>
<td style="width: 110px;"> <td style="width: 120px;">
<span style="float: right"> <span style="float: right">
<% if User.current.logged? && is_cur_course_student(@course) %> <% if User.current.logged? && is_cur_course_student(@course) %>
<% cur_user_homework = cur_user_homework_for_bid(bid) %> <% cur_user_homework = cur_user_homework_for_bid(bid) %>
<span class="span_wping">
<a>匿评中..</a>
</span>
<% if cur_user_homework && cur_user_homework.empty? %> <% if cur_user_homework && cur_user_homework.empty? %>
<span class="span_wping"> <span class="span_wping">
<%= link_to l(:label_commit_homework),new_exercise_book_path(bid) %> <%= link_to l(:label_commit_homework),new_exercise_book_path(bid) %>
</span> </span>
<% else %> <% else %>
<span style="color: green; float: right"> <span class="span_wping">
<%= l(:lable_has_commit_homework)%> <a>已&nbsp;提&nbsp;交</a>
</span> </span>
<% end %> <% end %>
<% end %> <% end %>
<% if (User.current.admin?||User.current.allowed_to?(:as_teacher,@course)) %> <% if (User.current.admin?||User.current.allowed_to?(:as_teacher,@course)) %>

@ -1,10 +1,10 @@
<style type="text/css"> <style type="text/css">
body{ font-size:12px; font-family:"微软雅黑","宋体"; line-height:1.9; background:#fff; font-style:normal;} #scrollsidebar{ font-size:12px; font-family:"微软雅黑","宋体"; line-height:1.9; background:#fff; font-style:normal;}
div,html,img,ul,li,p,body,h1,h2,h3,h4,p,a,table,tr,td,fieldset,input,span,ol{ } #scrollsidebar div,html,img,ul,li,p,body,h1,h2,h3,h4,p,a,table,tr,td,fieldset,input,span,ol{ }
div,img,tr,td,table{ border:0;} #scrollsidebar div,img,tr,td,table{ border:0;}
ol,ul,li{ list-style-type:none} #scrollsidebar ol,ul,li{ list-style-type:none}
.cl{ clear:both; overflow:hidden; } #scrollsidebar .cl{ clear:both; overflow:hidden; }
a{ text-decoration:none;} #scrollsidebar a{ text-decoration:none;}
html{ overflow-x:hidden;} html{ overflow-x:hidden;}
.custom_service p img {display: inline; margin-top:-5px; vertical-align:middle;} .custom_service p img {display: inline; margin-top:-5px; vertical-align:middle;}
@ -46,15 +46,15 @@ a:hover.opnionButton{ text-decoration:underline;}
// Url: // Url:
// Data : 2012-03-30 // Data : 2012-03-30
// //
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD> : float --> <20><><EFBFBD><EFBFBD>[left or right] // ???? : float --> ????[left or right]
// minStatue --> <EFBFBD><EFBFBD>С״̬<EFBFBD><EFBFBD>ֻ<EFBFBD><EFBFBD>show_btn // minStatue --> ??С???????show_btn
// skin --> Ƥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> // skin --> ???????
// durationTime --> <EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD> // durationTime --> ??????
//<EFBFBD><EFBFBD><EFBFBD><EFBFBD> : //???? :
$("#scrollsidebar2").fix({ $("#scrollsidebar2").fix({
float : 'right', //default.left or right float : 'right', //default.left or right
minStatue : true, //default.false or true minStatue : true, //default.false or true
skin : 'green', //default.gray or yellow <EFBFBD><EFBFBD>blue <20><>green <20><>orange <20><>white skin : 'green', //default.gray or yellow ??blue ??green ??orange ??white
durationTime : 1000 // durationTime : 1000 //
}); });
// //
@ -71,14 +71,14 @@ a:hover.opnionButton{ text-decoration:underline;}
var options = $.extend(defaults, options); var options = $.extend(defaults, options);
this.each(function(){ this.each(function(){
//<EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> //???????
var thisBox = $(this), var thisBox = $(this),
closeBtn = thisBox.find('.close_btn' ), closeBtn = thisBox.find('.close_btn' ),
show_btn = thisBox.find('.show_btn' ), show_btn = thisBox.find('.show_btn' ),
sideContent = thisBox.find('.side_content'), sideContent = thisBox.find('.side_content'),
sideList = thisBox.find('.side_list') sideList = thisBox.find('.side_list')
; ;
var defaultTop = thisBox.offset().top; //<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĭ<EFBFBD><EFBFBD>top var defaultTop = thisBox.offset().top; //????????top
thisBox.css(options.float, 0); thisBox.css(options.float, 0);
if(options.minStatue){ if(options.minStatue){
@ -87,11 +87,11 @@ a:hover.opnionButton{ text-decoration:underline;}
show_btn.css('width', 25); show_btn.css('width', 25);
} }
//Ƥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> //???????
if(options.skin) thisBox.addClass('side_'+options.skin); if(options.skin) thisBox.addClass('side_'+options.skin);
//<EFBFBD><EFBFBD><EFBFBD><EFBFBD>scroll<EFBFBD>¼<EFBFBD> //????scroll???
$(window).bind("scroll",function(){ $(window).bind("scroll",function(){
var offsetTop = defaultTop + $(window).scrollTop() + "px"; var offsetTop = defaultTop + $(window).scrollTop() + "px";
thisBox.animate({ thisBox.animate({
@ -99,15 +99,15 @@ a:hover.opnionButton{ text-decoration:underline;}
}, },
{ {
duration: options.durationTime, duration: options.durationTime,
queue: false //<EFBFBD>˶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> queue: false //???????????????????
}); });
}); });
//close<EFBFBD>¼<EFBFBD> //close???
closeBtn.bind("click",function(){ closeBtn.bind("click",function(){
sideContent.animate({width: '0px'},"fast"); sideContent.animate({width: '0px'},"fast");
show_btn.stop(true, true).delay(300).animate({ width: '25px'},"fast"); show_btn.stop(true, true).delay(300).animate({ width: '25px'},"fast");
}); });
//show<EFBFBD>¼<EFBFBD> //show???
show_btn.click(function() { show_btn.click(function() {
$(this).animate({width: '0px'},"fast"); $(this).animate({width: '0px'},"fast");
sideContent.stop(true, true).delay(200).animate({ width: '154px'},"fast"); sideContent.stop(true, true).delay(200).animate({ width: '154px'},"fast");
@ -132,17 +132,15 @@ function f_submit()
} }
</script> </script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>意见反馈</title> <title>意见反馈</title>
<link href="css/sidebar.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="js/sidebar.js"></script>
</head> </head>
<body style="height:auto"> <body style="height:auto">
<!-- ´úÂë ¿ªÊ¼ --> <!-- ?ú?? ???? -->
<div class="scrollsidebar" id="scrollsidebar"> <div class="scrollsidebar" id="scrollsidebar">
<div class="side_content"> <div class="side_content">
<div class="side_list"> <div class="side_list">
@ -169,7 +167,7 @@ function f_submit()
</div> </div>
<div class="show_btn"><span>提交</span></div> <div class="show_btn"><span>提交</span></div>
</div> </div>
<!-- ´úÂë ½áÊø --> <!-- ?ú?? ?á?? -->
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
$("#scrollsidebar").fix({ $("#scrollsidebar").fix({

@ -59,7 +59,7 @@
{ {
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'poll_submit', locals: { :poll => @poll,:is_remote => false}) %>'); $('#ajax-modal').html('<%= escape_javascript(render :partial => 'poll_submit', locals: { :poll => @poll,:is_remote => false}) %>');
showModal('ajax-modal', '310px'); showModal('ajax-modal', '310px');
$('#ajax-modal').css('height','110px'); $('#ajax-modal').css('height','115px');
$('#ajax-modal').siblings().remove(); $('#ajax-modal').siblings().remove();
$('#ajax-modal').before("<span style='float: right;cursor:pointer;'>" + $('#ajax-modal').before("<span style='float: right;cursor:pointer;'>" +
"<a href='#' onclick='clickCanel();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>"); "<a href='#' onclick='clickCanel();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");

@ -14,9 +14,9 @@ div,html,img,ul,li,p,body,h1,h2,h3,h4,p,a,table,tr,td,fieldset,input,span{ margi
#polls .fr{ float:right;} #polls .fr{ float:right;}
/*问卷按钮*/ /*问卷按钮*/
.polls_btn{ height:33px;border-top:1px solid #15bed1; border-bottom:1px solid #15bed1;border-right:1px solid #cee6e6; width:225px; padding:7px 0 0 15px; } /*.polls_btn{ height:33px;border-top:1px solid #15bed1; border-bottom:1px solid #15bed1;border-right:1px solid #cee6e6; width:225px; padding:7px 0 0 15px; }*/
.polls_btn a{font-size:14px; color:#444444;font-weight:bold;} /*.polls_btn a{font-size:14px; color:#444444;font-weight:bold;}*/
.polls_btn span{ color:#15bed1; font-size:12px; font-weight:normal;} /*.polls_btn span{ color:#15bed1; font-size:12px; font-weight:normal;}*/
/*问卷列表*/ /*问卷列表*/
.polls_content{ width:615px;padding-left: 6px;} .polls_content{ width:615px;padding-left: 6px;}

Loading…
Cancel
Save