用transform:scale();缩放
web DIV+CSS 2019-11-26 1841 0
关于本站

“最难不过坚持”

本人承接扒站仿站,php网站维护,病毒查杀,网站编辑,网站改版,html制作

有需要网站维护,改版,病毒查杀,网站编辑,网站备案,html制作等相关的工作可以联系我。
本人有多年相关工作经验,也可提供免费咨询,交个朋友。
有需要探讨问题的朋友,也可以加我微信,共同探讨!
微信:15011482830 QQ:408917339

6283113 2594 39
最新评论
https://jueru.net/
评 留言
:weixiao:
评 留言
:shuijiao: :weiqu: :zhenbang: :leng:
评 留言
:yiwen: :yiwen: :yiwen: :yiwen:
评 EasySass: could not generate CSS file. See Output panel for details.
这个业务逻辑多少都有点奇怪了,阅读浏览次数增值在新闻详情页的控制器方法里setInc,这怎么还写进模型事件里了。如果非要用onAfterRead也可以,把新闻文章的内容单独分出来一个news_content表,然后把它和news做关联,然后给news_content表的onAfterRead事件做增值处理,这样点进新闻页内查询到文章内容时才会触发它。
评 TP6模型事件-查询后onAfterRead不好用
文章标签更多
ThinkPHP (254)
Mysql (58)
DedeCms (33)
jQuery (67)
证件照 (1)
setInc (4)
setDec (4)
onclick (5)
打开边栏(ESC) 关闭边栏(ESC)

当鼠标划过的时候缩放: 


<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>缩放</title>
	<style>
		.box{
			width: 200px;
			height: 200px;
			margin:200px auto;
			 
		}
		.box:hover{
			transform: scale(1.5);
		}
		.blue:hover{
			transform:scale(2);}
		.blue{
			background:url(2.jpg) center center / cover no-repeat;
			position: relative;
		}
		.yellow{
			background-color:yellow;
			position: absolute;
			right:300px;
			top: 0px; 
		}
		.green{
			background-color:green;
			position: absolute;
			left: 300px;
			top: 0px; 
		}
	</style>
</head>
<body>
	<div class="box blue"></div>
	<div class="box green"></div>
	<div class="box yellow"></div>
	
</body>
</html>
效果展示


from clipboard


可以实现pc端和手机端logo大小的缩放

.logo_ttit{
	width:160px;height:42px;background:url(../images/logo.png) 0 0;
}
@media(max-width:767px) {
	.logo_ttit{
        -webkt-transform:scale(0.8);
        transform:scale(0.8);
    }
}

版权声明:本篇文章来源于网络。 来源链接

相关推荐
css提示invalid property value
DIV+CSS | 2020-07-23 17520
网上复制了一段css代码,浏览器没有出现预定的样式,按F12打开调试模式,发现css属性前有个感叹号,鼠标经过提示“Invalid property value”无效的属性值,如图 应该是css有错误,后来发现css属性前的空格包含&emsp;“全角空格”,删了就可以了 复制空白粘贴到编辑器,然后切换到源...
css通过父元素选择子元素,选择第一个,第二个,最后一个,奇数偶数
DIV+CSS | 2017-07-27 7348
:first-child 选择器 选择属于其父元素的首个子元素的每个 <p> 元素,并为其设置样式: p:first-child { background-color:yellow; } 例子1 选择列表中的第一个 <li> 元素并设置其样式: li:first-child { backgroun...
评论:0条
评论加载中...
发表评论