1. In Windows, minimize all open applications, right-click your desktop, and choose New Í Text
Document. If you don’t see this option, simply create a new text document using Notepad and save
it on your desktop
2. Rename the fi le Styles.css. Make sure the .txt extension is replaced by .css. If you don’t see
the initial .txt extension and the icon of the file doesn’t change from a text file to a CSS file (by
default this is the same icon as a text file with a gear symbol on top of it, but you may have software
installed that changed the icon for CSS files), Windows is configured to hide extensions for
known file types. If that’s the case, open up Windows Explorer in Windows 7, click the Organize
button, and then choose Folder and Search Options. Switch to the View tab and deselect the option
labeled Hide Extensions for Known File Types. For Windows 8 you find the option called File
Name Extensions on the View tab of the Ribbon bar of the File Explorer, shown in Figure 2-4.
You now may need to change the name of the file from Styles.css.txt to Styles.css.
When you change the file extension from .txt to .css, Windows may give you a warning that
the file becomes unusable if you proceed. You can safely answer Yes to this question to continue.
3. Rearrange VS so you can see part of the desktop with the CSS file as well. You can use the Restore
Down button next to the Close button on the Windows title bar of VS to get it out of full screen
mode.
4. Click the CSS file on the desktop and, while holding down the mouse button, drag the file into the
Solution Explorer. Make sure you drag the file into the Solution Explorer and not into other parts
of VS, or the file won’t be added. For example, when you drag it into the Document Window, VS
simply opens the file for you, but doesn’t add it to the site.
5. When you release the mouse while over the website node or an existing file in the Solution
Explorer, the CSS file is added to your site.
1 . ใน Windows , ลดโปรแกรมที่เปิดอยู่ทั้งหมดให้คลิกขวาที่เดสก์ทอปของคุณและเลือกÍเอกสารข้อความใหม่
ถ้าคุณไม่เห็นตัวเลือกนี้เพียงแค่สร้างใหม่เอกสารข้อความโดยใช้ notepad และบันทึกบนเดสก์ทอปของคุณ
2 เปลี่ยนชื่อ , เลอ styles.css . ให้แน่ใจว่านามสกุล . txt จะถูกแทนที่ด้วย CSS . ถ้าคุณไม่เห็น
ครั้งแรกนามสกุล txt และไอคอนของไฟล์ไม่ได้เปลี่ยนแปลงจากแฟ้มข้อความในไฟล์ CSS (
เริ่มต้นนี้เป็นไอคอนเดียวกันเป็นแฟ้มข้อความที่มีสัญลักษณ์เกียร์ด้านบนมัน แต่คุณอาจจะต้องติดตั้งซอฟต์แวร์
ที่เปลี่ยนไอคอนไฟล์ CSS ) , Windows ถูกปรับให้ซ่อนส่วนขยายสำหรับ
รู้จักไฟล์ประเภท ถ้าเป็นกรณีนี้ เปิด Windows Explorer ใน Windows 7 ให้คลิกจัดระเบียบ
ปุ่มแล้วเลือกโฟลเดอร์และตัวเลือกการค้นหา สลับไปที่แท็บมุมมองและยกเลิกการเลือกตัวเลือก
ข้อความซ่อนส่วนขยายสำหรับชนิดแฟ้มที่รู้จักกัน . สำหรับ Windows 8 คุณจะพบตัวเลือกที่เรียกว่าแฟ้ม
นามสกุลของชื่อบนแท็บมุมมองของแถบริบบิ้นของ Explorer ไฟล์ , แสดงในรูปที่ 2-4 .
ตอนนี้คุณอาจต้องการเปลี่ยนชื่อของไฟล์จาก styles.css.txt ลักษณะ CSS .
เมื่อคุณเปลี่ยนนามสกุลไฟล์จาก . txt . CSS , Windows อาจจะเตือนคุณว่าไฟล์จะใช้ไม่ได้
ถ้าคุณดำเนินการ คุณได้อย่างปลอดภัยสามารถตอบ yes กับคำถามนี้ต่อไป .
3 จัดเรียงและเพื่อให้คุณสามารถมองเห็นส่วนหนึ่งของเดสก์ทอปด้วยไฟล์ CSS เป็นอย่างดี คุณสามารถใช้ฟื้นฟู
ลงปุ่มถัดจากปุ่มปิดบนแถบชื่อเรื่องของหน้าต่างและการออกจากโหมดเต็มหน้าจอ
.
4คลิกที่ไฟล์บนเดสก์ทอปและในขณะที่ค้างปุ่มเมาส์ลากไฟล์ลง
Solution Explorer ให้แน่ใจว่าคุณลากไฟล์ลงใน Solution Explorer และส่วนอื่น ๆไม่เข้า
ของ VS หรือไฟล์จะไม่เพิ่ม ตัวอย่างเช่น เมื่อคุณลากมันเข้าไปในหน้าต่างเอกสาร vs
เพียงเปิดแฟ้มสำหรับคุณ แต่ไม่เพิ่มไปยังไซต์ .
5เมื่อคุณปล่อยเมาส์ในขณะที่ผ่านเว็บไซต์โหนดหรือแฟ้มที่มีอยู่ในสารละลาย
Explorer , ไฟล์ CSS จะถูกเพิ่มไปยังเว็บไซต์ของคุณ
การแปล กรุณารอสักครู่..
