`
peryt
  • 浏览: 55333 次
  • 来自: ...
最近访客 更多访客>>
社区版块
存档分类
最新评论
  • waiting: 既然都指定了dataType为'script'那就不必特别在b ...
    jQuery

add a sign up link to our home page

阅读更多

continue with the prior article, I'll try to add a sign up link to our home page.

 

 

<%= link_to "Sign up now!", '#', :class => "signup_button round" %>

Remember, # means a blank link, a link to itself.

 

 the generated html will be:

 

<a href="#" class="signup_button round">Sign up now!</a>

 

note:

 

right now, the <a> tag has two classed, seperated by a space.

 

<a href="#" class="signup_button round">

 this is convenient for the common case of an element with two kinds of styles.

 

 

Ok, we are done with adding a sign up button.

0
0
分享到:
评论

相关推荐

    add to home

    "Add to Home"功能在移动Web开发中是一个常见的特性,允许用户将网页快捷方式添加到他们的设备主屏幕上,类似于一个原生应用的图标。这个功能为用户提供了一种方便的方式,可以快速访问他们频繁使用的Web应用,而...

    In this step we add a simple COM object to our server using

    In this step we add a simple COM object to our server using the New ATL Object Wizard.(25KB)

    Add Custom Properties to a PropertyGrid

    Add Custom Properties to a PropertyGrid.c#属性有用的例子。 http://www.codeproject.com/KB/vb/PropertyGridEx.aspx

    An easy way to add a Ribbon Panel ffice style

    An easy way to add a Ribbon Panel Office 2007style

    Add a link to trello-crx插件

    为了进一步提升用户体验,开发者们制作了各种扩展程序,如“Add a link to trello-crx”,它为Chrome浏览器提供了与Trello更紧密集成的功能。 **1. 插件功能介绍** “Add a link to trello-crx”插件的主要作用是...

    Add Python to the search path on Windows

    Add Python to the search path on Windows

    add_arrow_to_line.m

    matlab功能函数,给直线加上箭头,使之成为矢线,起点[a,b],终点[c,d] 引用格式:add_arrow_to_line(a, c, b, d, color, linewidth, length_arrow) length_arrow指箭头边线长度

    This is a good example to add your programs’ icon to the Sy

    This is a good example to add your programs’ icon to the Systray. This Zip also includes a helpful example.

    VC6_add files to project失效解决方法

    在使用Microsoft Visual C++ 6.0(简称VC6)进行C++开发时,有时会遇到"Add Files to Project"功能失效的问题,这使得无法通过菜单项将新文件添加到项目中,对开发流程造成不便。本文将详细介绍如何解决这个问题,并...

    ember-add-to-homescreen:mobile移动网络Ember.js体验的“添加到主屏幕”提示

    用法将该组件放置在application.hbs文件中,如下所示{{ add-to-homescreen }}安装ember install ember-add-to-homescreen 然后: ember g ember-add-to-homescreen &lt;name&gt; 快速启动支持对于的1.0之前的版本,请确保...

    健身运动(整套简约APP手机移动端UI界面UX交互设计作品集XD分层素材模板xd).zip

    健身运动 健身运动 Fitness Love_V2.xd 1_Walkthoughs 1.png ...19_Add Food_Select a Meal.png 20_Workout Schedule.png 21_Workout Schedule_Scroll up.png 22_Meal_Nutrition Info_Chart .....

    Login_System_v.2.0 from US

    you can add/change the stuff in the last member.php page.-This is a login System, it has 3 files login.php register.php lastmember.php once a user has been logged in it will return him/her to the home...

    Android代码-ViewFinder

    In few words: The ViewHolder has one function - to provide a link to the view in a layout. So when you use the RecyclerView and you need to add a new View Type in your list - you must create a new ...

    Getting to Know Vue.js Learn to Build Single Page

    You’ll also explore how to use Single File Components and the Vue.js Command Line Interface (CLI) to build components in a single file and add in build tools as you see fit. Getting started with a ...

    sum it up !

    Given a specified total t and a list of n integers, find all distinct sums using numbers from the list that add up to t. For example, if t=4, n=6, and the list is [4,3,2,2,1,1], then there are four ...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - ADD: Add TFlexPanel.InvalidateControl virtual method which calls from TFlexControl.Invalidate and can be overriden (it is possible now to catch all object invalidation calls). - FIX: The TFlexPanel....

    Rapidshare Search Tool

    You will immediately get a link to source page, direct download link, alive status of download link and other informations in one well-arranged table in the style of MS Excel. Are you a software ...

    计算机网络第六版答案

    We’ll be happy to provide a copy (up-to-date) of this solution manual ourselves to anyone who asks. Acknowledgments: Over the years, several students and colleagues have helped us prepare this ...

    Teach Your Kids to Code: A Parent- Friendly Guide to Python Programming 2015

    Teach Your Kids to Code is the perfect companion to any introductory programming class or after-school meet-up, or simply your educational efforts at home. Spend some fun, productive afternoons at the...

Global site tag (gtag.js) - Google Analytics