Skip to main content

Thay đổi nền chữ khi được chọn với CSS3

Hình như ảnh không đúng với tiêu đề :))
Hôm nay em sẽ giới thiệu cho các bạn một thủ thuật rất hay có dùng CSS3 như đã giới thiệu ở phần tiêu đề. Với thủ thuật này, trang Web/blog của mọi người sẽ có một style mới, khiến người khác phải "thán phục" :)) .


DEMO ở ngay trên trang này luôn, màu sắc cũng hài hòa nhỉ?

Bắt đầu thủ thuật thôi!
  •  Vào Mẫu >> Chỉnh sửa HTML
  • Chèn code sau vào trước thẻ ]]></b:skin>
::selection {
    background: #0F83A0;
}
::-webkit-selection {
    background: #0F83A0;
}
::-moz-selection {
    background: #0F83A0;
}


Cái đoạn ::-webkit- ... thì bạn thêm vào hay không thêm vào cũng được, bởi chẳng chết ai đâu mà lo. Mã màu thì mọi người thay được chứ nhỉ
  • Nếu mọi người muốn thay đổi cả màu chữ nữa thì thay thế đoạn mã trên bằng đoạn sau:
::selection{
   background: #0F83A0
   color:#fff;
}
::-moz-selection{
   background: #0F83A0;
   color:#fff
}
::-webkit-selection {
    background: #0F83A0; 
    color:#fff; 

Lưu mẫu. Vậy là có style mới rồi!

Comments

Popular posts from this blog

Leveraging the Fast TikTok API on Apify for Efficient Data Scraping

Introduction: In the world of social media data analysis, TikTok has emerged as a popular platform with a vast amount of user-generated content. To extract valuable insights from TikTok, developers and researchers often resort to web scraping. One efficient way to accomplish this task is by utilizing the Fast TikTok API on the Apify platform. In this article, we will explore the benefits and capabilities of leveraging the Fast TikTok API for data scraping on TikTok. Check the API here:  https://apify.com/novi/fast-tiktok-api

Giải trí với video hài

Hy vọng video này sẽ giúp mọi người thư giãn và xả xì trét :D

Tutorial: Scraping Data from TikTok using Fast TikTok API with Python

In this tutorial, I will guide you through the process of scraping data from TikTok using the Fast TikTok API with Python. We will be using the requests library to make HTTP requests and retrieve data from the API. Let's get started! Step 1: Obtain API Credentials Go to https://apify.com and create an account if you haven't already. Once logged in, navigate to the Fast TikTok API page ( https://apify.com/novi/fast-tiktok-api ). Follow the instructions on the page to obtain your API credentials, such as an API key or access token. Make sure to note down these credentials for future use. Step 2: Set up your Python Environment Ensure that you have Python installed on your system. You can download the latest version of Python from the official website ( https://www.python.org ). Install the requests library by running the following command in your terminal: pip install requests Step 3: Import Required Libraries Open your preferred Python IDE or text editor and create a new Python