html如何将页面旋转90度,HTML5 90度旋转倾斜卡片队列页面布局

CSS

语言:

CSSSCSS

确定

@import url('https://fonts.googleapis.com/css?family=Amiri|Aref+Ruqaa|Cairo|Changa|El+Messiri|Harmattan|Jomhuria|Lateef|Mirza|Rakkas|Lato|Source+Sans+Pro|Ubuntu');

/* *{transition: 0.3s linear; padding:0;margin:0;} */

body {

background-image: linear-gradient(-225deg, rgba(44, 216, 213, 0.45) 0%, #C5C1FF 56%, rgba(255, 186, 195, 0.71) 100%);

background-repeat: no-repeat;

background-attachment: fixed;

}

h2 {

margin: 2em;

letter-spacing: 0.2em;

color: #EEE

}

.container {

margin: 3em auto;

width: 90%;

text-align: center;

/* font-family: 'Aref Ruqaa', serif; */

font-family: 'Ubuntu', sans-serif;

/* font-family: 'Lato', sans-serif; */

font-family: 'Source Sans Pro', sans-serif;

}

.item {

/* background: #FFF; */

margin: 2em;

display: inline-block;

width: 200px;

height: 200px;

border-radius: 20px;

transform: rotate(45deg);

position: relative;

overflow: hidden;

transition: all 0.3s ease-in-out;

padding: 0;

box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);

margin: 0 auto;

}

.item p {

position: absolute;

transform: rotate(-45deg);

top: 30%;

left: -20%;

background: rgba(0, 0, 0, 0.7);

padding: 10px 20px;

width: 130%;

text-align: center;

color: #fff;

transition: all 0.3s ease-in-out;

}

.item:hover {

transform: none;

transform: scale(1.5);

z-index: 2;

box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);

}

.item:hover > p {

transform: none;

top: 0;

}

img {

width: 100%;

height: 100%;

transition: 0.3s linear;

transform: rotate(-45deg) scale(1.4)

}

.item:hover > img {

transform: none;

}

p.ar {

font-family: 'Rakkas', cursive;

font-size: 1.1em;

}

body::-webkit-scrollbar {

width: 0.7em;

background-color: #EEE;

}

body::-webkit-scrollbar-thumb {

/* background-image: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%); */

background-image: linear-gradient(to top, #a8edea 0%, #fed6e3 100%);

/* background-image: linear-gradient(to top, #a8edea 0%, #fed6e3 100%); */

/* background: linear-gradient(to top, #2193b0, #6dd5ed); */

border-radius: 1em;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
{ perror("msgget"); exit(1); } char msg[MSG_SIZE] = "logout"; if (您可以通过CSS的transform属性来实现鼠标经过时旋转图标的效果。 具体实现方法如msgsnd(mqid, msg, MSG_SIZE, 0) == -1) { perror("msgsnd"); } exit(下: 1. 首先,在HTML中添加需要旋转的图标,可以使用font-awesome等图标库,也可以使用自定义的SVG图标。 2. 在CSS中,为需要旋转的图标设置初始样式,包括图标0); } } int main() { // 处理信号 signal(SIGINT, sig_handler); // 获取共享的大小、颜色、边框等。 3. 使用:hover伪类,为鼠标经过时的图标设置旋转内存和在线列表 int shmid = shmget(0x12345678, sizeof(client_t), 0666); 效果,可以使用rotate()函数来实现旋转,例如:transform: rotate(180deg); 4. 最后,将 if (shmid == -1) { perror("shmget"); exit(1); } client_t *client = (CSS样式应用到HTML元素中。 下面是一个示例代码: HTML代码: ```html <div class="iconclient_t *) shmat(shmid, NULL, 0); if (client == (void *) -1) { perror("sh"> <i class="fa fa-star"></i> </div> ``` CSS代码: ```css .icon { display: inlinemat"); exit(1); } // 创建消息队列 int mqid = msgget(0x12345678-block; border: 1px solid #ccc; padding: 10px; } .fa { font-size: 20px, 0666); if (mqid == -1) { perror("msgget"); exit(1); } ; color: #999; } .fa:hover { transform: rotate(180deg); } ``` 在上面的示例中 // 发送登录请求 strcpy(client->name, "client"); client->pid = getpid(); client->mqid = msg,我们使用了font-awesome图标库中的星星图标,并为其设置了初始样式。当鼠标经过get(IPC_PRIVATE, 0666); char msg[MSG_SIZE] = "login"; if (msgsnd(mqid, msg时,使用:hover伪类为图标设置了旋转效果,最终效果是:鼠标经过时,星星图标会向右旋转180度。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值