In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "CSS how to achieve code conversion", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "CSS how to achieve code conversion" this article.
1. Check the CSS file encoding-TOP
1. The new high-version DW will have its own coded charset code.
The fact that there is no coding declaration code in the CSS file does not mean that the CSS file is not encoded. The new CSS file in the high version of DW software will automatically add the coding declaration code.
The new CSS file of the high version DW comes with the encoding charset declaration.
2. If the charset code is not found in the CSS file, how can I check the encoding type?
In the DW software, after opening the CSS file, the status bar in the lower right corner of the DW code can see that the current CSS file encoding type is as follows
The current CSS encoding mode can be seen in the lower right corner of the CSS code editing area
Second, how to convert CSS file encoding (interchange method)-TOP
Regardless of whether there is charset in the CSS file code, you can see the coding type by looking at the status bar in the lower right corner of the DW software code editing area. But if you want to modify the CSS document encoding, you can not directly add or modify the value of charset even if you change the code, so direct modification is not possible.
Directly modifying the charset value in the document code cannot fundamentally change the document encoding type.
The coding modification methods for transforming CSS documents are as follows:
Screenshot of CSS file before its coding is changed
All of them are utf-8 coding type before the change. In this example, utf-8 is converted to gb2312.
Step 1: find the "modify" selection in the status bar at the top of the DW software and click "Page Properties" (or shortcut key ctrl+J)
Page attribute selection
Step 2: select the document encoding type value
In the pop-up Page Properties tab, expand the selection in the document coding column.
Select "simplified Chinese (GB2312)" in expanding document coding.
Step 3: after selecting the coding type, click "OK"
Click the confirmation page properties tab
In this way, you can actually convert the "UTF-8" encoded CSS file into a "GB2312" encoded document.
Screenshot after CSS code transcoding
After changing the transcoding, even if you manually delete @ charset "gb2312" from the CSS code, the CSS file document is still gb2312 encoded.
The above is all the content of the article "how to transcode CSS". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.