How to create .Text blog custom SKIN [Repost]

xiaoxiao2021-03-06  68

Author: Eric Willis

Translation: Hanbo / Southeast University

original:

Http://weblogs.notevil.net/eric/articles/792.aspx

--------------------------------------------

Can be reproduced any, please indicate the source!

--------------------------------------------

Creating .Text Blog's custom SKIN is not as difficult as its code. The following method allows you to make your own SKIN: 1 for you only a few minutes. First find the default directory saved by Skin so you will not find the north. Below we will select one of the existing SKINs to edit. Directory is generally in x: / dottext / dottextWeb / Skins 2. Open Skin's directory and select an existing SKIN. I chose Marvin3 (thank you MARVIN3 author, Marvin3 has a column on both sides of the page). Create a directory and copy the file. 3. Now rename a folder. My name is it Mine Eice because it is basically all blue - similar to my car's color. 4. Open that Skin folder, there are several CSS files. Marvin3 has several CSS files, other SKIN may have only one. Every CSS can be a version of your Skin. One of these files: PageTemplate.ASCX (ASP.NET CUSTOM Control), this file saves location information in SKIN. Open it and see how it works. You will see that the ordinary label prefix is ​​registered in the head of the file, which is used to draw the skin. At the same time, there are some HTML tags, you can write these tags freely, but don't have a grammatical error! You can also see which elements can move, such as "news" tags. 5. Back to the CSS file below. Most of the elements of most skin are called in the ASCX file, see the elements corresponding to each ID, and the corresponding CSS selector. I added a lot of content, you can customize some. 6. Find this folder in your Skin folder. The pictures used on SKIN are all in it. I added a picture as a background, and you can also put an arbitrary picture with the settings in the CSS file. For example, after adding a background: Background-Image: URL (images / blue_duckie_bg.gif). 7. Open the Skin folder, you can edit each element in the ASCX file. For example, open blogstats.ascx, you can see how Stats is displayed in your blog. You can react format or change their display. 8. The next step is the last step - create your SKIN to Dottext's Skin library, that is, editing skins.config. It is installed in x: / dottext / dottextWeb / Admin. Once you open this file, you will see a lot of labels in the facade, you need to create a new entrance to your new SKIN, that is, every CSS file has to add an entry. Skinid consists of your Skin name and a monockey, and the CSS file name. Skin's attribute display name is listed in the following settings, and then the second CSS property is the corresponding CSS file name.

转载请注明原文地址:https://www.9cbs.com/read-119479.html

New Post(0)