我只写了一张 j花板,使表格上的运作(如电网 p)。
彩虹添加了一些风格,例如overflow:hidden;
到桌边和囚室的囚室和边界上(为了在穿制服的边界上保持距离,我补充说:。 MyTable{ Border-width:0 0 1px 1px;}
和。 MyTable > tr > td{ Border-width:1px 1px 0 }
。
Now I am wonder how and where to put this css styles.
I can put them on external css file but then I force the user to add .css file to her page. In order to make the plugin accessable to all users, even the new ones, this could be an obstacle. A user might forget to add the css file or even change it s content in order to achieve something and this will make the plugin work unproperly.
In addition, I want to let the user the ability to change things (like the border s width). In case I put the css on external file, the user can change anything she desires by herself.
另一种选择是,我也可以直接在酋长院(使用长官......指挥)上指定风格。 因此,用户不必处理文件,以便以适当的方式开展工作,以便改变风格(如边界),我可以给假想增加一个选择。 但这样,我就制定不有效的守则,我把行为与设计结合起来。
Is there any other possibility to add styles to jquery plugins?
What is the best way to do it?
I am NOT talking about a style that should determine color or font, but styles that are necessary to the structure I make!