Bài mới nhất

Sửa Đóng
Thư mục: IT |
Đăng ngày: 19:07 08-06-2008
Tình hình là nhà nhà bản quyền, người người bản quyền. Với lại sau vụ "mất bò" vừa rồi bạn cũng sáng mắt ra nhiều lắm, ai bảo bạn không theo kịp thời đại, không gắn cái mác bản quyền vào cho người ta sợ. Thôi giờ lo làm chuồng cũng chưa muộn đâu nhỉ. Vâng con dấu của bạn đây :

Author: m3Noa - 08 Jun, 2008 - Copyright © 2008.
*Please ask for permission before copying this.

Hehe, áp dụng kỹ thuật Round Corners nhé, mà cái này thuần túy code không đụng đến tí image nào. Ưu điểm là dung lượng vô cùng gọn nhẹ . Vâng code của nó đây =)):
Code:

<div align="right">
<div align="center" style="width:302px;font-family:Arial, Helvetica, sans-serif;font-size:12px;">
<div style="width:294px; border-left: 1px solid #4444dd; border-right: 1px solid #4444dd;">
<div style="width:292px; height:0px; border-left: 1px solid #4444dd; border-right: 1px solid #4444dd; border-top: 1px solid #4444dd;background:#4444dd;"></div></div>
<div style="width:296px; border-left: 1px solid #6666FF; border-right: 1px solid #6666FF;">
<div style="width:294px; height:1px; border-left: 1px solid #4444dd; border-right: 1px solid #4444dd;background:#3333cc;"></div></div>
<div style="width:298px; border-left: 1px solid #6666FF; border-right: 1px solid #6666FF;">
<div style="width:296px; height:1px; border-left: 1px solid #4444dd; border-right: 1px solid #4444dd;background:#2222bb;"></div></div>
<div style="width:298px; border-left: 1px solid #6666FF; border-right: 1px solid #6666FF;">
<div style="width:296px; height:1px; border-left: 1px solid #4444dd; border-right: 1px solid #4444dd;background:#2222bb;"></div></div>
<div style="width:300px; border-left: 1px solid #6666FF; border-right: 1px solid #6666FF;">
<div align="center" style="width:298px; border-left: 1px solid #4444dd; border-right: 1px solid #4444dd;background:#1111aa;">
<div style="width:275px;text-align:justify;color:#E3ECFB;padding:4px 0px 4px 10px;">
Author: m3Noa - 01/01/2008 - Copyright &copy; 2008.<br />
<span style="color:#FF7723;font-weight:bold;font-size:11px;">*Please ask for permission before copying this.</span><br />
</div>
</div></div>
<div style="width:298px; border-left: 1px solid #6666FF; border-right: 1px solid #6666FF;">
<div style="width:296px; height:1px; border-left: 1px solid #4444dd; border-right: 1px solid #4444dd;background:#2222bb;"></div></div>
<div style="width:298px; border-left: 1px solid #6666FF; border-right: 1px solid #6666FF;">
<div style="width:296px; height:1px; border-left: 1px solid #4444dd; border-right: 1px solid #4444dd;background:#2222bb;"></div></div>
<div style="width:296px; border-left: 1px solid #6666FF; border-right: 1px solid #6666FF;">
<div style="width:294px; height:1px; border-left: 1px solid #4444dd; border-right: 1px solid #4444dd;background:#3333cc;"></div></div>
<div style="width:294px; border-left: 1px solid #6666FF; border-right: 1px solid #6666FF;">
<div style="width:292px; height:0px; border-left: 1px solid #4444dd; border-right: 1px solid #4444dd;background:#4444dd; border-bottom: 1px solid #4444dd;"></div></div>
</div></div>


Dài ko =))?! Có mỗi cái đoạn bé tí thế mà code lắm nhờ .
Thật ra làm một block có round corner nếu dùng image thì đơn giản hơn nhiều, có điều sẽ làm tăng thêm http Request và tăng dung lượng của trang Web. Có thể nói là thất sách .
Trích dẫn (0)
Tìm tag: Design, Tips, IT, CSS, HTML
  • Báo cáo

    Chúa Ơi 12:16 23-10-2009

    Cảm ơn bạn,
    Tất cả những bài viết của bạn mình đã đều xem qua và thật hay
    Chúc bạn luôn bình an nhé!
  • Báo cáo

    Vni 03:53 09-06-2009

    Author: VNI - 01/01/2009 - Copyright © 2009.
    *Please ask for permission before copying this.
    Nice!Thanks... :D
  • Thanks You !
  • Báo cáo

    boycityfunny1992 13:28 07-11-2008

    Author: boycityfunny1992 - 07/11/2008 - Copyright © 2008.
    *Please ask for permission before copying this.
  • Báo cáo

    ToRiKaChiN8 01:10 28-08-2008

    Canh Thiu Vinamilk ^^! Noa
  • Báo cáo

    ToRiKaChiN8 01:08 28-08-2008

    Author: ToRiKaChiN8 - 01/01/2008 - Copyright © 2008.
    *Please ask for permission before copying this.
  • Đây là lời bình riêng
  • Đây là lời bình riêng
    Đây là câu trả lời riêng
  • hình như là cái nì chỉ dùng cho triìh duyệt FF thui chứ mở trình duyệt IE là nhìn khác hẳn
    Báo cáo

    Noa18:56 13-06-2008

    Chỉ khác khi hiển thị trong khung viết bài mới thôi chứ lúc đăng bài thì nhìn như nhau mà, có điều nếu lỡ tay chỉnh lệch code thì sẽ ko đc như mong muốn đâu =).
  • Báo cáo

    songuku99 09:52 10-06-2008

    hehe, i mean persistent, not pipelining. Yup, I agree there is still a tiny delay even when persistent is used.  But the delay is not that much (just about 1 extra packet which is a lot smaller than 0.2s to create a new TCP connection).  About pipelining, I don't know about the browser side until you told me: useful information to know.  On the server side, many servers disable pipelining to avoid being flooded.

    Regarding the ad contract: bạn Noa tốt bụng quá.  Có thêm 1 người bạn tốt bụng để thảo luận như bạn Noa là quan trọng hơn, Chừng nào songuku làm page đẹp đẹp thì sẽ đăng kí quảng cáo với bạn Noa  

    Báo cáo

    Noa07:29 11-06-2008

    Hehe, đừng khen bạn tốt bụng, bụng bạn đểu lắm, đang đau máy hôm nay đây .
  • Báo cáo

    Roni 19:39 09-06-2008

    9 day ban. 1 ngay 2 ngay ma`ko vao blog ban thi ko nhan ra mat'

    entry nhanh wa'  h`ihi`

    mai~ chua dc tem phat nao`... hix hix

    Báo cáo

    Noa05:48 10-06-2008

    Hehe, hôm nay tớ có viết đc bài nào đâu, có ngày rảnh rỗi thì viết nhiều bù cho ngày bận ko viết đc chứ sao . 9day nhé!
  • Báo cáo

    songuku99 12:54 09-06-2008

    Hehe, ok, I agree with you that the size itself shouldn't matter cuz all file will be rounded up to packet size.

    But still disagree about the HTTP request.  A single background image should only take 1 request.  And if the code and image are from same server, the 2 requests should use the same TCP connection since most server support persistent connection now, which doesn't cost 0.2s delay.

    Báo cáo

    Noa05:46 10-06-2008

    Hehe, if you use  one image for round corners, you can't reuse it for other block which has different dimension, and if block has a lot of content, image size may be too big.
    And about HTTP Request, hehe, I think you're talking about HTTP pilelining, not  HTTP persistent connection. Although persistent connection has many advantage, but it still has delay time between each request from client and response from server.
     
    Pipelining is a good technique, but requires both the client and the server to support it. IE7 still doesn't support pipelining, FF 2.0.* support but it's disabled by default.

    Hehe, I don't know much about network, but I just only say what I understood or  my experience, and maybe I'm wrong .
  • thanks nhé,dạo nì nhìu wân vừa ăn cướp vừa la làng wá nên có cái nì là tiện nì :)
  • Báo cáo

    songuku99 01:05 09-06-2008

    hehe I disagree.  Looks like the html code is bigger than a gif image (i did a quick comparision, may be inccorect).  Plus, new version of HTTP has persistent connection so if both the text and image are from the same server (yahoo), it doesn't make big difference. But I think the advantage of your code is that it can quickly generate different sizes and shapes by just adjusting the width, without using photoshop.

    Regarding the ad contract, it sounds like it only benefits me, but not you

    Báo cáo

    Noa04:03 09-06-2008

    Hmm,.. I just made a conparison, created a html file with only this code and try to made some simple gifs with 64-colors for round corners, their size are the same (images's size is little bigger but maybe incorrect too ). Ignore the connection speed cuz now almost people use ADSL (or better),  not dial up 56kbps, and different size isn't the problem. But if used images for round conrner, we must cost at least 6 http request, and each request has delay time is 0.2 secs, 6 request will take 1.2secs and not change on any speed. For this reason, I recommend to used code for simple round corners .

    About the ad-contract,... hehe, don't make me change my mind .
  • Báo cáo

    Fe 23:33 08-06-2008

    Đẳng cấp text ! Tưởng chừng như góc tròn chỉ có thể dùng image ! Quá sup bờ !
    Báo cáo

    Noa04:04 09-06-2008

    Chỉ là một thử nghiệm mới thôi, có điều gõ code hơi mệt đấy .
  • Báo cáo

    [W].Dephia 20:25 08-06-2008

    Wên sửa ngày tháng :))
    Author: [W].Dephia - 08/06/2008 - Copyright © 2008.
    *Please ask for permission before copying this.
  • Báo cáo

    [W].Dephia 20:23 08-06-2008

    Sao cũng được, Add cái Logo vào bài viết đã =))
    Author: [W].Dephia - 01/01/2008 - Copyright © 2008.
    *Please ask for permission before copying this.
  • Báo cáo

    [W].Dephia 19:56 08-06-2008

    Đọc rồi, biết òy :)) Chỉ là ... dự báo trước 1 ngày mai đen tối thôi  =))
    Báo cáo

    Noa19:59 08-06-2008

    Mai-đen với Bin-la-đen thì kệ nó đen, mình trắng là đc rồi =)).  
  • Báo cáo

    Lonely 19:42 08-06-2008

    nãy giờ mình lang thang trên blog bạn hơn 1h rồi đấy,vậy mà lại hụt tem..pó tay,bác vũ nguyễn hay và nhanh thật đấy,mà css dài thế àh!
    Báo cáo

    Noa19:45 08-06-2008

    Ko cái này là code HTML paste trực tiếp vào bài viết chứ ko phải CSS đâu .
  • Báo cáo

    [W].Dephia 19:41 08-06-2008

    Rút gọn cũng chỉ có mức độ, nhưng nếu theo cái đà thủ thuật này nối tiếp div khác như vầy thì ... =))=))=))
    Báo cáo

    Noa19:43 08-06-2008

    Cái này là code HTML chứ có phải CSS đâu mà sợ bị giới hạn code hả cậu =))))))))). Lại đọc ko kỹ rồi .
  • Báo cáo

    [W].Dephia 19:37 08-06-2008

    Hà hà, tình hình hiện h là  độ dài CSS có hạn nên áp dụng wá nhiều Code thì ... ko ổn à =))
    Báo cáo

    Noa19:40 08-06-2008

    Ổn hay ko là do người sử dụng thôi, ko hẳn do CSS đâu =)).

  • Báo cáo

    [W].Dephia 19:36 08-06-2008

    Sắc =.= LẠi trượt  =.=
  • Báo cáo

    [W].Dephia 19:35 08-06-2008

    Tem =))
  • Báo cáo

    Vũ Nguyễn 19:35 08-06-2008

    ui hay nhé Noa, kekeke chắc anh lại được tem rồi kekeke

Bài viết về bạn hoặc có tag tên bạn:

  • Chưa có bài nào có liên quan.

Người đăng ký yêu thích blog này cũng đồng thời thích:

  • Chưa có blog yêu thích nào có liên quan.

Xem thêm

Thư mục

Xem ngày tháng

S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30