From 6a9abf12b9e9b90a9509bf19bf271eac7449d565 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Fri, 27 Mar 2015 16:11:56 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=BD=93=E9=97=AE=E5=8D=B7=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E8=BF=87=E9=95=BF=EF=BC=8C=E6=98=BE=E7=A4=BA=E8=B6=85?= =?UTF-8?q?=E8=BF=87=E9=A1=B5=E9=9D=A2=202=E3=80=81=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E6=9C=AA=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/poll/show.html.erb | 4 +--- public/stylesheets/polls.css | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) 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; }