温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

ruby on rails link_to字体颜色变更

发布时间:2020-08-17 10:13:37 来源:网络 阅读:4440 作者:骑猴上树 栏目:编程语言

整理:

railslink_to的字符如何改变颜色

<%= link_to "my test", :controller=> 'test', :action => 'test' %>

默认颜色是蓝色的,想要改成白色的,哪位知道怎么改


答:<%= link_to "mytest", {:controller => 'test', :action =>'test'},:style=>"color:red" %>



<div style="background-p_w_picpath: url('/user/p_w_picpaths/mypage/live_order_btn_1.jpg'); width: 166px; height: 30px">

       <p style = "padding-left: 35px;padding-top: 6px;">

        <%=link_to(t('mypage.live_order_btn'),{:action => "course_order", :id => @course.id, :back_action => params[:action]},:style=>"color:white;font-weight: bold")%>  

       </p>

      </div>


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI