| |

VerySource

 Forgot password?
 Register
Search
View: 756|Reply: 3

theme question!

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-17 11:40:01
| Show all posts |Read mode
I set <pages theme = "Theme01" styleSheetTheme = "Theme01" /> on web.config
There is a SkinFile.skin and a SkinFile.css file in the Theme01 directory. There is a page LeftMenu.aspx I don't want to set the theme, use LeftMenu.aspx to set
<% @ Page Language = "C #" AutoEventWireup = "true" Codebehind = "LeftMenu.aspx.cs" Inherits = "aa.PUB.LeftMenu" EnableTheming = "false"%>, but EnableTheming = "false" doesn't work! SkinFile.css body {
        background-color: # E3E5DC;
margin-left: 0px;
margin-top: 8px;
} But I set <body bgcolor = '# ffffff' marginheight = '0' marginwidth = '0' topmargin = '0' leftmargin = '0'> in LeftMenu.aspx and it still has # E3E5DC color. Is there any good way to make this also not apply the theme! Thank you·!
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-16 16:30:01
| Show all posts
SkinFile.css
Not skin
So your skin setting is definitely useless
Put <link type = "text / css" href = "SkinFile.css" rel = "stylesheet" />
Delete it
Reply

Use magic Report

0

Threads

58

Posts

32.00

Credits

Newbie

Rank: 1

Credits
32.00

 Invalid IP Address

Post time: 2020-2-16 17:30:01
| Show all posts
<pages theme = "Theme01" styleSheetTheme = "Theme01" />

>>>>>>>>>>>>>>>>>>>>>>>>>

To:
<pages theme = "Theme01" />
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-23 14:30:01
| Show all posts
The main thing is to apply the settings in styleSheetTheme first. Then apply the style set in the page, if the same settings are found, overwrite the settings in styleSheetTheme with the style set in the page. Finally, apply the style in Theme, and if the same setting is found, use the latter to overwrite the former. So if you want to set a global style in the main body, but also want to control some special control styles in the page, it is recommended not to use the Theme property, and only styleSheetTheme specifies the theme.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list