没人性的js / 重置浏览器默认样式/虚线/css引用/空格/页面边距/rails tag/字体

本文介绍Rails应用中如何正确引用图片、JS文件及CSS样式,并提供了一个Reset.css样例,用于统一浏览器默认样式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

8、<font face=微软雅黑 color=blue size=3></font>

7、rails 引用相对路径图片: <%=image_path "calendar/appli.png"%> <%=image_tag "calendar/04_Portfolio.png"%>

     rails 引用js:  "<%=perf_calendars_path + ".js"%>"

 

 

     <%= javascript_include_tag  "jQuery.js" %>

     <%= stylesheet_link_tag "jQuery-1.3.css"%>

 

 

 

6、 body {margin-left:12em;margin-right:10em; }

5、&nbsp;   '&lsaquo; 上个月   下个月 &rsaquo;

4、

<head>

    <style type="text/css">   </style>

    <script type="text/javascript">    </script>
</head>

 

3、虚线 <div style="border-top:1px dashed #cccccc;height: 1px;overflow:hidden"></div>

 

2、 t = 1; t =+ 2; t = ?  // t = 2

 

1、Reset.css

 

html{color:#000;background:#FFF;} 
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form, 
fieldset,input,textarea,p,blockquote,th,td { 
margin:0; 
padding:0; 

table { 
border-collapse:collapse; 
border-spacing:0; 

fieldset,img { 
border:0; 

address,caption,cite,code,dfn,em,strong,th,var { 
font-style:normal; 
font-weight:normal; 

ol,ul { 
list-style:none; 

caption,th { 
text-align:left; 

h1,h2,h3,h4,h5,h6 { 
font-size:100%; 
font-weight:normal; 

q:before,q:after { 
content:”; 

abbr,acronym { border:0; 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值