`
hitwzh
  • 浏览: 9576 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
默认的属性值都是static,静态。就不用多说了。最关键的是 relative(相对)以及absolute(绝对)。 往往我们如果是COPY别人的代码,会把absolute属性与left、top配合起来制作相关的“悬浮层”效果。然而有时候我们需要针对某一个容器的悬浮效果,而不是针对窗口的。这时候通过高度、宽度的计算不但麻烦,而且几乎无法完美实现效果。我一开始也无能为力,后来发现只要把其上一级的样式属性 position设置为relative就可以了。 也就是说,position的属性值的效果,直接受其容器样式中position属性值影响。 例如如下A-B的嵌套结构 <div id=&qu ...
开发了一下小型网站基于rails 2.3.5,jruby,glassfish 部署,oracle 数据库。 但是访问一个网页却慢的不行,不知道是什么原因造成的,已经困扰我好几天了。 大家有没有用jruby 开发过网站? 如何调优提高访问速度 (如能解决该问题,本人赠送电影票一张以表谢意! )
问题:ruby 版本的 fckeditor 通过glassfish 打包发布后,图片默认上传路径与默认的图片显示路径不同,造成图片能够上传但是却无法显示。 注意: 1. Warbler 打包参数:config.dirs = %w(app config lib log vendor tmp public),一定要包括public 不然的话将无法成功部署。 2. 在fckcustom.js 中修改FCKRelativePath = '' ", 修改为 FCKRelativePath = '/RailsApplication1' 其中"RailsApplication1&q ...
由于工作的关系,需要将rails应用部署到jruby+glassfishv3. 但是发现在glassfish上速度明显比jruby + webrick 慢很多。下面是我做了一个简单的比较测试,希望高人能指点迷津不胜感激: 应用环境: Server: WEBrick1.3.1 Database: Oracle 11g Ruby version 1.8.7 (java) RubyGems version 1.3.5 Rack version 1.0 Rails version 2.3.4 Active Record version 2.3.4 Active Resource version 2 ...
http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu
http://www.freshblurbs.com/explaining-java-lang-outofmemoryerror-permgen-space
http://okruby.com/
http://www.iteye.com/topic/431217
If you want to change or add formats, put something like this in your environment.rb after the end of the Initializer block: ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!( :default => '%m/%d/%Y', :date_time12 => "%m/%d/%Y %I:%M%p", :date_time2 ...
http://kyoleelqh.iteye.com/blog/250514
http://www.davesite.com/webstation/js/theory1jump.shtml Drop Down List URL Jump Box Scenario: I have three web sites I want to link to. I also don't want to bore my friends by having them all lined up in a row, or in a long unordered list. I want them to click a little drop down box, and have that ...
http://www.practicalecommerce.com/blogs/post/438-The-Blurring-Line-Between-Plugins-and-Gems Drop Down List URL Jump Box Scenario: I have three web sites I want to link to. I also don't want to bore my friends by having them all lined up in a row, or in a long unordered list. I want them to click a ...
Global site tag (gtag.js) - Google Analytics