A post was merged into an existing topic: Topic lưu trữ các post off-topic - version 3
Cách post Code dùng Markdown trong Category Programming
Thử
using namespace std;```
test
abcdxyz
int main(){
`printf("Hello");`
}
#include<stdio.h>
int main()
{
printf("Hello daynhauhoc.com");
return 0;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SlideShow</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.image_wrap {
width: 640px;
margin: 50px auto;
}
#image {
width: 100%;
padding-top: calc(100% /(16/9));
background-image: url("https://www.topgear.com/sites/default/files/styles/16x9_1280w/public/images/news-article/2019/11/a227d957994302a82fb560b1b029ff91/42109_web_sec01.jpg?itok=AWfjSKg9");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body>
<div class="image_wrap">
<div id="image"></div>
</div>
<script>
var arr = [
'url("https://www.topgear.com/sites/default/files/styles/16x9_1280w/public/images/news-article/2019/11/a227d957994302a82fb560b1b029ff91/42109_web_sec01.jpg?itok=AWfjSKg9")',
'url("https://www.mochub.com/sites/default/files/2018-03/pana2557_fb_ret.jpg")',
'url("https://cdn.motor1.com/images/mgl/grmvg/s3/lego-nissan-gt-r-nismo.jpg")',
'url("https://images.khaleejtimes.com/storyimage/KT/20181113/ARTICLE/181119982/EP/1/1/EP-181119982.jpg&MaxW=780&imageVersion=16by9&NCS_modified=20181118052207")',
'url("https://topgear.nl/thumbs/hd/2020/03/lamborghini-urus-joel-beukers.jpg")',
'url("https://img.motor16.com/articulos/14000/14687_hg267v4Jk1EoF-p1.jpg")'
];
var currentIndex = 0;
function slideshow() {
document.getElementById('image').style.backgroundImage = arr[currentIndex];
currentIndex++;
if (currentIndex == arr.length) {
currentIndex = 0;
}
setTimeout("slideshow()", 2000);
};
slideshow();
</script>
</body>
</html>
1 Like
System.out.println("hello world");
#include
using namespace std;
int main() {
//Code in here;
}
#include <iostream>
using namespace std;
int main() {
//Code in here;
}