I have a web part that is installed using a feature. This web part has a css file that is deployed and I need to tweak it, but 开发者_JS百科can't find it anywhere. I suspect it might be in the SQL Server DB. So how can I find it, edit it and see changes on the fly? Thanks.
If you want to trace where the .CSS file is located, you have a coupl of options. You can use the IE developer toolbar. If you have Internet Explore version 8, you already have it.
Press F12 to open the tool bar. Press CTRL+B and use the mouse to locate and find the element you are interested in.
Select the CSS tab in the left toolbar and locate the CSS file in the dropdown box, or the "Trace styles" on the right hand side and see which CSS file is the base for the style.
The IE developer tool bar also lets you change CSS parameters on the fly so you can see how the result will be directly when you edit them.
JavaScript will allow you to change styles and CSS on the fly. AFIK this is the only way to do it at runtime. I would recommend using a lib like JQuery to make it less painful and to leverage existing code.
精彩评论