cagret wrote:I have the same problem as shenhui, can't set user stylesheet for web pages.
- Code: Select all
browserDefaults.user_style_sheet_enabled = true;
CefString(&browserDefaults.user_style_sheet_location).FromASCII("file://D:/.../proto3/shared.css");
browserDefaults.universal_access_from_file_urls_allowed = true;
browserDefaults.file_access_from_file_urls_allowed = true;
I even set "universal_access_from_file_urls_allowed" and "file_access_from_file_urls_allowed" but it doesn't help.
Setting the path to "D:/.../proto3/shared.css" (no file://) also doesn't help.
The file exists - 100% tested.
The styles in CSS also work - 100% tested.
Just to be clear -- are you saying that your user style sheet is being loaded by CEF to style other things but fails to style scroll bars? What is being styled successfully? Can you provide your CSS file?
Thanks,
Marshall