Selector css

Mình thấy Css rất hay, nhưng hình như hỗ trợ chưa đầy đủ, hoặc mình chưa kiếm ra được. Vấn đề về selector, Hồng có giải pháp nào không?

Vd:

  1. <div id=testid>
  2. <a>Test a</a>
  3. <a>Test b</a>
  4. <a>Test c</a>
  5. <a>Test d</a>
  6. </div>

Làm sao để chỉnh sửa css cho đoạn Test b, Test c, Test d. Mình đã tìm hiểu nhiều nhưng không tim ra. Hồng giúp mình nhé.

Comments

???

???

Oh

xin lỗi, cái textarea này có đọc tag. Ý của Thái là ví dụ có một tag ul và 4 tag li, nếu chúng không có id hay class thì làm sao chỉnh sửa được các tag li thứ 2 và thứ 3 (là các tag li không phải là fist child hay last child) ?

ko the lam the duoc

theo minh biet thì không thể làm thế nếu bạn không gắn cho ít nhất 1

  • 1 class và id. hoặc thêm thuộc tính active
  • Comment viewing options

    Select your preferred way to display the comments and click "Save settings" to activate your changes.

    Post new comment

    The content of this field is kept private and will not be shown publicly.
    • Web page addresses and e-mail addresses turn into links automatically.
    • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <sup> <br> <p> <h3>
    • Lines and paragraphs break automatically.
    • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]]. Link to outside URLs with [[http://www.example.com|some text]], or even [[http://www.example.com]].
    • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

    More information about formatting options

    CAPTCHA
    This question is for testing whether you are a human visitor and to prevent automated spam submissions.