diff --git a/app/views/poll/show.html.erb b/app/views/poll/show.html.erb index ffbc8c11a..57969faa5 100644 --- a/app/views/poll/show.html.erb +++ b/app/views/poll/show.html.erb @@ -4,9 +4,7 @@

<%= @poll.polls_name%>

-

- <%= @poll.polls_description.nil? ? "" : @poll.polls_description.html_safe%> -

+ <%= @poll.polls_description.nil? ? "" : @poll.polls_description.html_safe%>
diff --git a/public/stylesheets/polls.css b/public/stylesheets/polls.css index 08517c6da..ff0697119 100644 --- a/public/stylesheets/polls.css +++ b/public/stylesheets/polls.css @@ -24,7 +24,8 @@ a:hover.pollsbtn{ background:#64bdd9; color:#fff; text-decoration:none;} /*问卷页面*/ .polls_box{ border:1px solid #dcdcdc; padding:15px 30px;} -.ur_page_title{ font-size:16px; text-align:center; color:#353535;} +.ur_page_title{ font-size:16px; text-align:center; color:#353535;word-break: break-all;word-wrap: break-word;} +#polls div{word-break: break-all;word-wrap: break-word;} .ur_prefix_content{ color:#656565; text-indent:30px; margin-top:10px; } .ur_card{border-top:1px solid #dcdcdc;margin-top:20px; color:#3a3a3a;} .ur_title{ padding:20px 0px ; float:left; width:604px; }