简体   繁体   English

Portlet的CSS最佳实践

[英]CSS best practice for portlets

I need to redone existing project CSSs' - more than 5 files, which describes all our porlets UI to standard CSS file,called portlet-spec-1.0.css 我需要重做现有项目CSS's-超过5个文件,这些文件将我们所有的Porlets UI描述为标准CSS文件,称为portlet-spec-1.0.css

So, I've found one specification for this: http://www.ja-sig.org/wiki/display/UPC/JSR-168+PLT.C+CSS+Style+Definitions 因此,我为此找到了一个规范: http : //www.ja-sig.org/wiki/display/UPC/JSR-168+PLT.C+CSS+Style+Definitions

This spec. 这个规格。 is obsolete,dated by 2003. 已过时,到2003年。

Is there contemporary version of this standard? 该标准有当代版本吗?

What can you say from your experience? 根据您的经验,您能说什么?

I think standardization is very good idea, but CSS Style Definitions is too weak to follow it. 我认为标准化是个好主意,但是CSS样式定义太弱了,无法遵循。

You can download the final JSR-168 portlet spec from here . 您可以从此处下载最终的JSR-168 portlet规范。

That document has a section on CSS, pretty close to whats in the spec you cited. 该文档中有关于CSS的部分,与您引用的规范中的内容非常接近。 If you are looking for something newer, you could check in the JSR-286 spec. 如果您正在寻找更新的东西,可以查看JSR-286规范。

I had been previously unaware that there were CSS styles definitions as part of the spec, so apparently it could stand to be better publicized. 我以前没有意识到规范中包含CSS样式定义,因此显然可以更好地进行宣传。 We've been using ad-hoc definitions of styles in our portlets, and the results have been, predictably, poor. 我们一直在Portlet中使用样式的临时定义,并且可以预见的是,结果很差。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM