主题:  MX新功能讨论3:CSS的design time style

5D荣誉斑竹

职务:普通成员
等级:5
金币:10.0
发贴:3292
注册:2001/5/24 10:01:29
#12002/4/27 0:14:03
在CSS样式表内右键鼠标,弹出的菜单中有一项,design time styles sheets有什么用?

搞来搞去,我也没明白是怎么回事。。



BobChao

职务:普通成员
等级:1
金币:0.0
发贴:23
注册:2002/4/23 19:27:57
#22002/4/27 0:24:24
Design Time style sheets allow you to show or hide design applied by a CSS style sheet as you work in a Dreamweaver document. For example, you can use this option to include or exclude the effect of a Macintosh-only or a Windows-only style sheet as you design a page.

Design Time style sheets only apply while you are designing working in the Dreamweaver document; when the page is displayed in a browser window, only the styles that are actually attached to or embedded in the document appear in a browser.

恩... 我覺得啦 想嘗試新軟體, 查查help跟相關的reference是必要的



5D荣誉斑竹

职务:普通成员
等级:5
金币:10.0
发贴:3292
注册:2001/5/24 10:01:29
#32002/4/27 0:42:35
帮助我看了,只是看了半天也没明白是怎么一回事,下面是我的初步理解:

Design time styles sheets(设计时的样式),这个是可以设置Dreamweaver MX在设计时是否显示某个样式表的样子。因为有些系统(例如苹果电脑和PC)或浏览器的样式表支持不一样,我们需要编写不同的样式表,而在设计的时候,我们不希望显示那部分不支持的样式表就可以用hide styles sheets design time 的方法隐藏其效果。



5D荣誉斑竹

职务:普通成员
等级:5
金币:10.0
发贴:3292
注册:2001/5/24 10:01:29
#42002/4/27 0:49:18
还有为什么MX没有支持CSS2。

是不是正式版,有支持

还有就是希望属性面板里可以设置直接样式表,类似
Style="font-size:12px"

要不太另人失望了



MXSTUDIO

职务:普通成员
等级:1
金币:0.0
发贴:111
注册:2002/4/25 8:49:05
#52002/4/27 1:39:00
期待正式



Syawn

职务:普通成员
等级:5
金币:10.0
发贴:2930
注册:2004/6/24 17:14:35
#62002/4/27 19:32:24
是不是象js一样可以设置settime?



5DDreamweaver版主

职务:版主
等级:3
金币:10.0
发贴:1031
注册:2001/10/13 14:38:50
#72002/4/27 21:02:24

基本上就是hve所理解的
研究了一下,使用Design time styles sheets命令基本有下面几个表现
1.CSS面板的edit styles视图下,根据你在Design time styles sheets对话框的设置,相应的外部CSS会标记为hiden(隐藏)或devolop(设计时显示)
2.在CSS面板下的apply style视图,如设了隐藏,相应的标记会被隐藏,不能被使用
3.在DW中设计视图下,即design下,所应用了的CSS效果被隐藏,但用浏览器看,则以本身浏览器可否显示为准。

比较能说明的help这样讲:
[quoto]Most styles attributes you apply can be viewed in the Document window. You can also preview the document in a browser window to see it applied. Some of the CSS style attributes are rendered differently in Microsoft Internet Explorer 4.0 and Netscape Navigator 4.0, and some are not currently supported by any browser.

While working in the CSS Styles panel, you can use the Design Time Style Sheet feature of Dreamweaver. This feature allows you to hide or show style sheet attributes while you are designing a page in Dreamweaver (for example to view a document with a style sheet designed for Navigator or for Internet Explorer). For information about using Design Time Style Sheets see Using Design Time style sheets.

Design Time style sheets allow you to show or hide design applied by a CSS style sheet as you work in a Dreamweaver document. For example, you can use this option to include or exclude the effect of a Macintosh-only or a Windows-only style sheet as you design a page.

Design Time style sheets only apply while you are designing working in the Dreamweaver document; when the page is displayed in a browser window, only the styles that are actually attached to or embedded in the document appear in a browser.


The CSS Styles panel updates with the selected style sheet’s name along with an indicator, “hidden” or “design,” to reflect the style sheet’s status.
[/quoto]



BobChao

职务:普通成员
等级:1
金币:0.0
发贴:23
注册:2002/4/23 19:27:57
#82002/4/27 22:55:39
to 班竹:
不是有意要學你的 icon 喔
呵... 創意差不多

and, 太巧 我也叫小強

這篇跟討論文沒關係... 可刪之



5DDreamweaver版主

职务:版主
等级:3
金币:10.0
发贴:1031
注册:2001/10/13 14:38:50
#92002/4/28 1:09:51

我也来水一帖,小强
这icon是MX beta出第二天做的...

交个朋友msn:qqkk2000@hotmail.com



5D荣誉斑竹

职务:普通成员
等级:5
金币:10.0
发贴:3292
注册:2001/5/24 10:01:29
#102002/4/28 1:23:19
呵呵,现在流行了。。。





BobChao

职务:普通成员
等级:1
金币:0.0
发贴:23
注册:2002/4/23 19:27:57
#112002/4/29 19:09:19
hve在上个帖子中说
引用:
还有为什么MX没有支持CSS2。
是不是正式版,有支持
还有就是希望属性面板里可以设置直接样式表,类似
Style="font-size:12px"
要不太另人失望了


直接設置的功能好像沒做出來 (用Tag Quick Editor吧)
不過CSS2好像正式版有做喔 今天出了PR1, 去官方站下來看看吧