Tìm kiếm
Chỉ tìm trong tiêu đề
Bởi:
Chỉ tìm trong tiêu đề
Bởi:
Home
Trang nhất
Bài mới
Tìm trong diễn đàn
Có gì mới
Bài mới
Bài viết mới trong hồ sơ
Hoạt động gần đây
Thành viên
Người đang truy cập
Bài viết mới trong hồ sơ
Tìm trong bài viết hồ sơ
Thiết kế web
Chat
1
Archive
Top chatters
Sanctions
Đăng nhập
Tạo tài khoản
Tìm kiếm
Chỉ tìm trong tiêu đề
Bởi:
Chỉ tìm trong tiêu đề
Bởi:
Trình đơn
Install the app
Install
Trả lời vào chủ đề
Home
Trang nhất
Design & Seo website
PHP & MySQL
Code thu ảnh theo ảnh gốc và tạo nền trắng ở khung
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Nội dung
<blockquote data-quote="administrator" data-source="post: 86" data-attributes="member: 1"><p><!DOCTYPE html></p><p><html></p><p><head></p><p><style></p><p>html, body {</p><p> height: 100%;</p><p>}</p><p>img.one {</p><p> height: auto;</p><p> width: auto;</p><p>}</p><p>img.two {</p><p>margin: auto;</p><p> object-fit:scale-down;</p><p>}</p><p></style></p><p></head></p><p><body></p><p><h2>Set the height and width in %</h2></p><p><p>Resize the browser window to see the effect.</p></p><p><p>Original image:</p></p><p><img class="one" src="ocean.jpg" width="300" height="300"><br></p><p><p>Sized image (in col):</p></p><p><div style= "width: 1600px; height: 600px; background-color: yellow; margin: 0; justify-content: center; display: flex; "></p><p><img class="two" src="ocean.jpg" width="100%" height="100%"></p><p></div></p><p></body></p><p></html></p></blockquote><p></p>
[QUOTE="administrator, post: 86, member: 1"] <!DOCTYPE html> <html> <head> <style> html, body { height: 100%; } img.one { height: auto; width: auto; } img.two { margin: auto; object-fit:scale-down; } </style> </head> <body> <h2>Set the height and width in %</h2> <p>Resize the browser window to see the effect.</p> <p>Original image:</p> <img class="one" src="ocean.jpg" width="300" height="300"><br> <p>Sized image (in col):</p> <div style= "width: 1600px; height: 600px; background-color: yellow; margin: 0; justify-content: center; display: flex; "> <img class="two" src="ocean.jpg" width="100%" height="100%"> </div> </body> </html> [/QUOTE]
Mã xác nhận
Tên miền của diễn đàn (diendan.websitecuatoi.com)
Trả lời
Home
Trang nhất
Design & Seo website
PHP & MySQL
Code thu ảnh theo ảnh gốc và tạo nền trắng ở khung
Bên trên
Bottom